diff options
author | Kurt Kanzenbach <[email protected]> | 2021-05-03 09:28:00 +0200 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2021-06-03 08:38:37 -0700 |
commit | 5379260852b013902abbca691926b3ac1cac36d5 (patch) | |
tree | 87dcbf49b372be1014f04271aa75f243b0f76412 /lib/mpi/mpi-sub-ui.c | |
parent | ab00f3e051e851a8458f0d0eb1bb426deadb6619 (diff) |
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 <[email protected]>
Acked-by: Jesper Dangaard Brouer <[email protected]>
Tested-by: Sandeep Penigalapati <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions