diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-04-04 09:11:03 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-04 10:43:02 +0200 |
commit | 7d42e84eb99daf9b7feef37e8f2ea1eaf975346b (patch) | |
tree | a1c4c52998a03949aab068aaf071e2e98b6a69ca /net/openvswitch/conntrack.c | |
parent | Merge tag 'mlx5-updates-2021-04-02' of git://git.kernel.org/pub/scm/linux/ker... (diff) | |
download | linux-7d42e84eb99daf9b7feef37e8f2ea1eaf975346b.tar.xz linux-7d42e84eb99daf9b7feef37e8f2ea1eaf975346b.zip |
net: openvswitch: Use 'skb_push_rcsum()' instead of hand coding it
'skb_push()'/'skb_postpush_rcsum()' can be replaced by an equivalent
'skb_push_rcsum()' which is less verbose.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/conntrack.c')
-rw-r--r-- | net/openvswitch/conntrack.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/openvswitch/conntrack.c b/net/openvswitch/conntrack.c index 71cec03e8612..c29b0ef1fc27 100644 --- a/net/openvswitch/conntrack.c +++ b/net/openvswitch/conntrack.c @@ -809,8 +809,7 @@ static int ovs_ct_nat_execute(struct sk_buff *skb, struct nf_conn *ct, err = nf_nat_packet(ct, ctinfo, hooknum, skb); push: - skb_push(skb, nh_off); - skb_postpush_rcsum(skb, skb->data, nh_off); + skb_push_rcsum(skb, nh_off); return err; } @@ -1322,8 +1321,7 @@ int ovs_ct_execute(struct net *net, struct sk_buff *skb, else err = ovs_ct_lookup(net, key, info, skb); - skb_push(skb, nh_ofs); - skb_postpush_rcsum(skb, skb->data, nh_ofs); + skb_push_rcsum(skb, nh_ofs); if (err) kfree_skb(skb); return err; |