]> git.baikalelectronics.ru Git - kernel.git/commit
mlx5e: modify driver for handling offsets
authorKevin Laatz <kevin.laatz@intel.com>
Tue, 27 Aug 2019 02:25:25 +0000 (02:25 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 30 Aug 2019 23:08:26 +0000 (01:08 +0200)
commit3167c15b7ed5761341f1fc2486500ac6b5e2d2ce
treefb7ee9ed0ee538c6d21ab35de56d2e4ab3c11c34
parent6158e0dee356dfe8225c9f02fd11f3270392ad41
mlx5e: 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/mellanox/mlx5/core/en/xdp.c
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c