aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/datapath.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-06-16 11:48:41 -0400
committerDavid S. Miller <davem@davemloft.net>2017-06-16 11:48:41 -0400
commit3dc02251f43fb5ec7fa576138005edbfe35ed1ca (patch)
tree41e0cfc0c640666a75ad07588df34addb18176d0 /net/openvswitch/datapath.c
parentMerge branch 'r8152-adjust-runtime-suspend-resume' (diff)
parentnetworking: add and use skb_put_u8() (diff)
downloadlinux-3dc02251f43fb5ec7fa576138005edbfe35ed1ca.tar.gz
linux-3dc02251f43fb5ec7fa576138005edbfe35ed1ca.zip
Merge branch 'skb-accessor-cleanups'
Johannes Berg says: ==================== skb data accessors cleanup Over night, Fengguang's bot told me that it compiled all of its many various configurations successfully, and I had done allyesconfig on x86_64 myself yesterday to iron out the things I missed. So now I think I'm happy with it. My tree was based on your commit 3715c47bcda8bb56f7e2be27276282a2d0d48c09 Merge: 18b6e7955d8f d8fbd27469fc Author: David S. Miller <davem@davemloft.net> Date: Thu Jun 15 14:31:56 2017 -0400 Merge branch 'r8152-support-new-chips' when the compilation tests happened, but I've reviewed the changes coming into net-next in the meantime and didn't see any new usages of skb data accessors having come in. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/datapath.c')
-rw-r--r--net/openvswitch/datapath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index 9ddc9f8412a2..d772e9a4b4f8 100644
--- a/net/openvswitch/datapath.c
+++ b/net/openvswitch/datapath.c
@@ -413,7 +413,7 @@ static void pad_packet(struct datapath *dp, struct sk_buff *skb)
size_t plen = NLA_ALIGN(skb->len) - skb->len;
if (plen > 0)
- memset(skb_put(skb, plen), 0, plen);
+ skb_put_zero(skb, plen);
}
}