linux_dsm_epyc7002/net/core
Serhey Popovych bdaf32c3ce fib_rules: Resolve goto rules target on delete
We should avoid marking goto rules unresolved when their
target is actually reachable after rule deletion.

Consolder following sample scenario:

  # ip -4 ru sh
  0:      from all lookup local
  32000:  from all goto 32100
  32100:  from all lookup main
  32100:  from all lookup default
  32766:  from all lookup main
  32767:  from all lookup default

  # ip -4 ru del pref 32100 table main
  # ip -4 ru sh
  0:      from all lookup local
  32000:  from all goto 32100 [unresolved]
  32100:  from all lookup default
  32766:  from all lookup main
  32767:  from all lookup default

After removal of first rule with preference 32100 we
mark all goto rules as unreachable, even when rule with
same preference as removed one still present.

Check if next rule with same preference is available
and make all rules with goto action pointing to it.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-20 12:39:18 -04:00
..
datagram.c
dev_addr_lists.c
dev_ioctl.c dev_ioctl: copy only the smaller struct iwreq for wext 2017-06-14 13:52:44 +02:00
dev.c net: rps: fix uninitialized symbol warning 2017-06-13 11:31:22 -04:00
devlink.c devlink: fix potential memort leak 2017-06-05 11:24:28 -04:00
drop_monitor.c
dst_cache.c
dst.c Fix an intermittent pr_emerg warning about lo becoming free. 2017-06-09 12:27:28 -04:00
ethtool.c
fib_rules.c fib_rules: Resolve goto rules target on delete 2017-06-20 12:39:18 -04:00
filter.c bpf: add bpf_clone_redirect to bpf_helper_changes_pkt_data 2017-05-25 13:44:28 -04:00
flow_dissector.c
flow.c
gen_estimator.c
gen_stats.c
gro_cells.c
hwbm.c
link_watch.c
lwt_bpf.c
lwtunnel.c
Makefile
neighbour.c neighbour: update neigh timestamps iff update is effective 2017-05-17 11:41:38 -04:00
net_namespace.c net: move somaxconn init from sysctl code 2017-05-25 13:12:17 -04:00
net-procfs.c
net-sysfs.c
net-sysfs.h
net-traces.c
netclassid_cgroup.c
netevent.c
netpoll.c
netprio_cgroup.c
pktgen.c
ptp_classifier.c
request_sock.c
rtnetlink.c net: Zero ifla_vf_info in rtnl_fill_vfinfo() 2017-06-08 10:58:02 -04:00
scm.c
secure_seq.c
skbuff.c sock: reset sk_err when the error queue is empty 2017-06-04 20:01:53 -04:00
sock_diag.c
sock_reuseport.c
sock.c net: fix compile error in skb_orphan_partial() 2017-05-17 15:10:13 -04:00
stream.c
sysctl_net_core.c net: move somaxconn init from sysctl code 2017-05-25 13:12:17 -04:00
timestamping.c
tso.c
utils.c