Revision 375f51e2b5b7b9a42b3139aea519cbb1bfc5d6ef authored by Roi Dayan on 21 March 2017, 13:59:14 UTC, committed by David S. Miller on 22 March 2017, 19:11:12 UTC
Changing the eswitch inline mode can potentially cause already configured flows not to match the policy. E.g. set policy L4, add some L4 rules, set policy to L2 --> bad! Hence we disallow it. Keep track of how many offloaded rules are now set and refuse inline mode changes if this isn't zero. Fixes: bffaa916588e ("net/mlx5: E-Switch, Add control for inline mode") Signed-off-by: Roi Dayan <roid@mellanox.com> Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d85cdcc
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 865 bytes |
Makefile | -rw-r--r-- | 392 bytes |
dma_queue.c | -rw-r--r-- | 4.9 KB |
iorpc_globals.c | -rw-r--r-- | 2.2 KB |
iorpc_mpipe.c | -rw-r--r-- | 14.9 KB |
iorpc_mpipe_info.c | -rw-r--r-- | 2.6 KB |
iorpc_trio.c | -rw-r--r-- | 8.8 KB |
iorpc_uart.c | -rw-r--r-- | 2.1 KB |
iorpc_usb_host.c | -rw-r--r-- | 2.7 KB |
kiorpc.c | -rw-r--r-- | 1.7 KB |
mpipe.c | -rw-r--r-- | 14.0 KB |
trio.c | -rw-r--r-- | 1.2 KB |
uart.c | -rw-r--r-- | 2.0 KB |
usb_host.c | -rw-r--r-- | 2.0 KB |
Computing file changes ...