]> asedeno.scripts.mit.edu Git - linux.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)
commitbeb3e4b29530d54f2ef956acfb4999c775f10519
treefb7ee9ed0ee538c6d21ab35de56d2e4ab3c11c34
parentd8c3061e5edd3b1f32c32fb9ebe11fad3c1bce82
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