diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-01-30 12:41:40 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-30 15:55:46 -0500 |
commit | f50f212749e8a28803af3628acbeb85ee0458ed5 (patch) | |
tree | 788d02870180ae1bcb725eec81ca8f53b4568aaa /net/dsa/dsa_priv.h | |
parent | 4be9993493bc7ee3fdf950a83bc050a3e6cf2a45 (diff) |
net: dsa: Add plumbing for port mirroring
Add necessary plumbing at the slave network device level to have switch
drivers implement ndo_setup_tc() and most particularly the cls_matchall
classifier. We add support for two switch operations:
port_add_mirror and port_del_mirror() which configure, on a per-port
basis the mirror parameters requested from the cls_matchall classifier.
Code is largely borrowed from the Mellanox Spectrum switch driver.
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa_priv.h')
-rw-r--r-- | net/dsa/dsa_priv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h index 3022f2e42cdc..a5509b765fc0 100644 --- a/net/dsa/dsa_priv.h +++ b/net/dsa/dsa_priv.h @@ -41,6 +41,9 @@ struct dsa_slave_priv { #ifdef CONFIG_NET_POLL_CONTROLLER struct netpoll *netpoll; #endif + + /* TC context */ + struct list_head mall_tc_list; }; /* dsa.c */ |