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-- | 1.1 KB |
Makefile | -rw-r--r-- | 411 bytes |
addr.c | -rw-r--r-- | 4.2 KB |
addr.h | -rw-r--r-- | 2.7 KB |
bcast.c | -rw-r--r-- | 15.3 KB |
bcast.h | -rw-r--r-- | 4.0 KB |
bearer.c | -rw-r--r-- | 27.9 KB |
bearer.h | -rw-r--r-- | 8.7 KB |
core.c | -rw-r--r-- | 4.5 KB |
core.h | -rw-r--r-- | 4.6 KB |
discover.c | -rw-r--r-- | 10.2 KB |
discover.h | -rw-r--r-- | 2.3 KB |
eth_media.c | -rw-r--r-- | 3.6 KB |
ib_media.c | -rw-r--r-- | 3.6 KB |
link.c | -rw-r--r-- | 56.5 KB |
link.h | -rw-r--r-- | 6.1 KB |
monitor.c | -rw-r--r-- | 20.9 KB |
monitor.h | -rw-r--r-- | 3.5 KB |
msg.c | -rw-r--r-- | 17.5 KB |
msg.h | -rw-r--r-- | 20.4 KB |
name_distr.c | -rw-r--r-- | 11.0 KB |
name_distr.h | -rw-r--r-- | 3.2 KB |
name_table.c | -rw-r--r-- | 29.3 KB |
name_table.h | -rw-r--r-- | 5.2 KB |
net.c | -rw-r--r-- | 8.1 KB |
net.h | -rw-r--r-- | 2.2 KB |
netlink.c | -rw-r--r-- | 8.5 KB |
netlink.h | -rw-r--r-- | 2.7 KB |
netlink_compat.c | -rw-r--r-- | 31.7 KB |
node.c | -rw-r--r-- | 53.7 KB |
node.h | -rw-r--r-- | 4.1 KB |
server.c | -rw-r--r-- | 15.1 KB |
server.h | -rw-r--r-- | 3.6 KB |
socket.c | -rw-r--r-- | 72.0 KB |
socket.h | -rw-r--r-- | 2.7 KB |
subscr.c | -rw-r--r-- | 11.9 KB |
subscr.h | -rw-r--r-- | 3.3 KB |
sysctl.c | -rw-r--r-- | 2.5 KB |
udp_media.c | -rw-r--r-- | 19.8 KB |
udp_media.h | -rw-r--r-- | 2.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...