summaryrefslogtreecommitdiff
path: root/include/net/netns/packet.h
blob: 17ec2b95c062d0b0dc13d2c9702c2ab9da831682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * Packet network namespace
 */
#ifndef __NETNS_PACKET_H__
#define __NETNS_PACKET_H__

#include <linux/rculist.h>
#include <linux/mutex.h>

struct netns_packet {
	struct mutex		sklist_lock;
	struct hlist_head	sklist;
};

#endif /* __NETNS_PACKET_H__ */
uthorIdo Schimmel <idosch@mellanox.com>2017-02-09 10:28:43 +0100 committerDavid S. Miller <davem@davemloft.net>2017-02-10 11:32:13 -0500 commit4283bce5f8c2307d47313e0429e5f1357c43023d (patch) tree763a4eac7acd2f91bca761230e3e612a1be1c99c /drivers parent9aecce1c7d977e52759167a4916d71e80aaf5070 (diff)
mlxsw: spectrum_router: Add support for route append
When a new route is appended, it's placed after existing routes sharing the same parameters (prefix, length, table ID, TOS and priority). While the device supports only one route with the same prefix and length in a single table, it's important to correctly place the appended route in the driver's cache, as when a route is deleted the next one is programmed into the device. Following the reception of an ENTRY_APPEND notification, resolve the FIB node corresponding to the prefix and length and correctly place the new entry in its entry list. 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.c43
1 files changed, 37 insertions, 6 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c