summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKurt Kanzenbach <kurt@linutronix.de>2021-05-03 10:28:00 +0300
committerTony Nguyen <anthony.l.nguyen@intel.com>2021-06-03 18:38:37 +0300
commit5379260852b013902abbca691926b3ac1cac36d5 (patch)
tree87dcbf49b372be1014f04271aa75f243b0f76412 /lib
parentab00f3e051e851a8458f0d0eb1bb426deadb6619 (diff)
downloadlinux-5379260852b013902abbca691926b3ac1cac36d5.tar.xz
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 'lib')
0 files changed, 0 insertions, 0 deletions