mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-02 12:02:47 +00:00
openvswitch: make skb->csum consistent with rest of networking stack.
Following patch keeps skb->csum correct across ovs. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Signed-off-by: Jesse Gross <jesse@nicira.com>
This commit is contained in:
parent
45bfa52e36
commit
b34df5e805
5 changed files with 17 additions and 0 deletions
|
@ -618,6 +618,9 @@ int ovs_flow_extract(struct sk_buff *skb, u16 in_port, struct sw_flow_key *key,
|
|||
memcpy(key->eth.dst, eth->h_dest, ETH_ALEN);
|
||||
|
||||
__skb_pull(skb, 2 * ETH_ALEN);
|
||||
/* We are going to push all headers that we pull, so no need to
|
||||
* update skb->csum here.
|
||||
*/
|
||||
|
||||
if (vlan_tx_tag_present(skb))
|
||||
key->eth.tci = htons(skb->vlan_tci);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue