OSDN Git Service

ixgbe: modify driver for handling offsets
authorKevin Laatz <kevin.laatz@intel.com>
Tue, 27 Aug 2019 02:25:24 +0000 (02:25 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 30 Aug 2019 23:08:26 +0000 (01:08 +0200)
commitd8c3061e5edd3b1f32c32fb9ebe11fad3c1bce82
treec8c7c953733cfe4d9090b8d4a5feaa4cbd92b827
parent2f86c806a8a89f34c463705d00420acf49302162
ixgbe: modify driver for handling offsets

With the addition of the unaligned chunks option, we need to make sure we
handle the offsets accordingly based on the mode we are currently running
in. This patch modifies the driver to appropriately mask the address for
each case.

Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c