summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@mellanox.com>2017-05-09 19:02:42 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2017-05-23 16:23:31 +0300
commitd824bf3fe2d352fc2c52b7ede05b1a0e95d946be (patch)
treeb5b2e82f1cb8776f6fb49f167990ef763789af93 /net/ipv4
parent26c02749936f064abf771a0f5f49b280fcfd8b66 (diff)
net/mlx5e: Properly enforce disallowing of partial field re-write offload
Currently we don't support partial header re-writes through TC pedit action offloading. However, the code that enforces that wasn't err-ing on cases where the first and last bits of the mask are set but there is some zero bit between them, such as in the below example, fix that! tc filter add dev enp1s0 protocol ip parent ffff: prio 10 flower ip_proto udp dst_port 2001 skip_sw action pedit munge ip src set 1.0.0.1 retain 0xff0000ff Fixes: d79b6df6b10a ('net/mlx5e: Add parsing of TC pedit actions to HW format') 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 'net/ipv4')
0 files changed, 0 insertions, 0 deletions