mausezahn-libs = -lcli \ -lnet \ -lpcap \ -lrt \ -lpthread \ -lm mausezahn-objs = str.o \ staging/layer1.o \ staging/layer2.o \ staging/layer3.o \ staging/layer4.o \ staging/hextools.o \ staging/tools.o \ staging/lookupdev.o \ staging/time.o \ staging/modifications.o \ staging/send_eth.o \ staging/send.o \ staging/cdp.o \ staging/rtp.o \ staging/dns.o \ staging/rcv_rtp.o \ staging/syslog.o \ staging/cli.o \ staging/cli_cmds.o \ staging/cli_launch.o \ staging/cli_legacy.o \ staging/cli_packet.o \ staging/cli_interface.o \ staging/cli_set.o \ staging/cli_dns.o \ staging/cli_arp.o \ staging/cli_bpdu.o \ staging/cli_eth.o \ staging/cli_ip.o \ staging/cli_udp.o \ staging/cli_tcp.o \ staging/cli_rtp.o \ staging/cli_tools.o \ staging/cli_igmp.o \ staging/cli_lldp.o \ staging/cli_sequence.o \ staging/mops.o \ staging/mops_update.o \ staging/mops_tools.o \ staging/mops_checksums.o \ staging/mops_threads.o \ staging/mops_dot1Q.o \ staging/mops_mpls.o \ staging/mops_ip.o \ staging/mops_tcp.o \ staging/mops_ext.o \ staging/mops_ext_arp.o \ staging/mops_ext_bpdu.o \ staging/mops_ext_rtp.o \ staging/mopsrx_arp.o \ staging/mops_ext_igmp.o \ staging/mops_ext_lldp.o \ staging/mops_sequence.o \ staging/automops.o \ staging/parse_xml.o \ staging/tx_switch.o \ staging/llist.o \ staging/directmops.o \ staging/mausezahn.o mausezahn-eflags = -O2 -I. -I.. \ -DVERSION_STRING=\"$(VERSION_STRING)\" \ -DPREFIX_STRING=\"$(PREFIX)\" \ -DVERSION_LONG=\"$(VERSION_LONG)\" mausezahn-confs = d=a8c9701427987d959fec3f99bb2811d943686b7b'>refslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2017-02-08 11:16:35 +0100
committerDavid S. Miller <davem@davemloft.net>2017-02-08 15:25:17 -0500
commita8c9701427987d959fec3f99bb2811d943686b7b (patch)
tree47d86222157585e61ce621e98e2a75063d11da16 /drivers
parentc8b030774f43a816e287e50581fe84e8ea905c44 (diff)
mlxsw: spectrum_router: Refactor nexthop init routine
The nexthop init and de-init functions both have symmetric parts concerned with the reflection of the neighbour entry into the device's adjacency table, in case it's used by a gatewayed route. These sections of code also need to be called when a nexthop is marked as valid / invalid following NH_{ADD,DEL} events. Break these out into appropriate functions, so that they could be invoked following the reception of above events. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c80
1 files changed, 49 insertions, 31 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c