summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
diff options
context:
space:
mode:
authorOr Gerlitz2017-05-10 19:14:16 +0200
committerSaeed Mahameed2017-06-08 13:12:00 +0200
commit2b64beba025109f64e688ae675985bbf72196b8c (patch)
treeb1b2c47b129ed3b8a26761b2e21cabe2b0381e10 /drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
parentnet/mlx5e: Use modify header ID cache for offloaded TC NIC flows (diff)
downloadkernel-qcow2-linux-2b64beba025109f64e688ae675985bbf72196b8c.tar.gz
kernel-qcow2-linux-2b64beba025109f64e688ae675985bbf72196b8c.tar.xz
kernel-qcow2-linux-2b64beba025109f64e688ae675985bbf72196b8c.zip
net/mlx5e: Support header re-write of partial fields in TC pedit offload
Using a per field mask field, the TC pedit action supports modifying partial fields. E.g if using the TC tool, the following example would make the kernel to only re-write two bytes of the src ip address: tc filter add dev enp1s0 protocol ip parent ffff: prio 30 flower skip_sw ip_proto udp dst_port 8001 action pedit ex munge ip src set 10.1.0.0 retain 0xffff0000 We add driver support for offload these partial re-writes, by setting the per FW action offset-in-field and length-from-offset attributes. The 1st bit set in the mask specifies both the offset and the right shift to apply on the value such that the 1st bit which needs to be set will reside in bit 0 of the FW data field. Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Reviewed-by: Paul Blakey <paulb@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c')
0 files changed, 0 insertions, 0 deletions