mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
cd77ce9303
commit
7d42e84eb9
2 changed files with 5 additions and 8 deletions
|
@ -44,10 +44,9 @@ static void netdev_port_receive(struct sk_buff *skb)
|
|||
if (unlikely(!skb))
|
||||
return;
|
||||
|
||||
if (skb->dev->type == ARPHRD_ETHER) {
|
||||
skb_push(skb, ETH_HLEN);
|
||||
skb_postpush_rcsum(skb, skb->data, ETH_HLEN);
|
||||
}
|
||||
if (skb->dev->type == ARPHRD_ETHER)
|
||||
skb_push_rcsum(skb, ETH_HLEN);
|
||||
|
||||
ovs_vport_receive(vport, skb, skb_tunnel_info(skb));
|
||||
return;
|
||||
error:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue