aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ethernet/intel/i40e/i40e_txrx.c
diff options
context:
space:
mode:
authorKurt Kanzenbach <kurt@linutronix.de>2021-05-03 09:28:00 +0200
committerTony Nguyen <anthony.l.nguyen@intel.com>2021-06-03 08:38:37 -0700
commit5379260852b013902abbca691926b3ac1cac36d5 (patch)
tree87dcbf49b372be1014f04271aa75f243b0f76412 /drivers/net/ethernet/intel/i40e/i40e_txrx.c
parentnet: stmmac: fix issue where clk is being unprepared twice (diff)
downloadwireguard-linux-5379260852b013902abbca691926b3ac1cac36d5.tar.xz
wireguard-linux-5379260852b013902abbca691926b3ac1cac36d5.zip
igb: Fix XDP with PTP enabled
When using native XDP with the igb driver, the XDP frame data doesn't point to the beginning of the packet. It's off by 16 bytes. Everything works as expected with XDP skb mode. Actually these 16 bytes are used to store the packet timestamps. Therefore, pull the timestamp before executing any XDP operations and adjust all other code accordingly. The igc driver does it like that as well. Tested with Intel i210 card and AF_XDP sockets. Fixes: 9cbc948b5a20 ("igb: add XDP support") Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_txrx.c')
0 files changed, 0 insertions, 0 deletions