We currently call skb_reset_mac_header() in a few places when a
packet is received. However, this is not needed because flow_extract()
will set all of the protocol headers during parsing and nothing needs
the packet headers before that time.
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
struct internal_dev *internal_dev = internal_dev_priv(netdev);
struct vport *vport = rcu_dereference(internal_dev->vport);
- skb_reset_mac_header(skb);
compute_ip_summed(skb, true);
OVS_CB(skb)->flow = NULL;
vport_receive(vport, skb);
-
return 0;
}
skb_warn_if_lro(skb);
- /* Push the Ethernet header back on. */
skb_push(skb, ETH_HLEN);
- skb_reset_mac_header(skb);
compute_ip_summed(skb, false);
vport_receive(vport, skb);