net: dsa: Hook {get,set}_rxnfc ethtool operations
In preparation for adding support for CFP/TCAMP in the bcm_sf2 driver add the
plumbing to call into driver specific {get,set}_rxnfc operations.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
40be0dda07
commit
bf9f26485d
@@ -377,6 +377,14 @@ struct dsa_switch_ops {
|
||||
int (*port_mdb_dump)(struct dsa_switch *ds, int port,
|
||||
struct switchdev_obj_port_mdb *mdb,
|
||||
int (*cb)(struct switchdev_obj *obj));
|
||||
|
||||
/*
|
||||
* RXNFC
|
||||
*/
|
||||
int (*get_rxnfc)(struct dsa_switch *ds, int port,
|
||||
struct ethtool_rxnfc *nfc, u32 *rule_locs);
|
||||
int (*set_rxnfc)(struct dsa_switch *ds, int port,
|
||||
struct ethtool_rxnfc *nfc);
|
||||
};
|
||||
|
||||
struct dsa_switch_driver {
|
||||
|
||||
Reference in New Issue
Block a user