]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/ethernet/netronome/nfp/nfp_port.h
nfp: provide infrastructure for offloading flower based TC filters
[karo-tx-linux.git] / drivers / net / ethernet / netronome / nfp / nfp_port.h
index 1ceef5d4a744a388c61e8c5359d65adb41e8d621..a33d22e18f94f80fbccc3e66e0ef9fb342ebecf7 100644 (file)
@@ -36,6 +36,7 @@
 
 #include <net/devlink.h>
 
+struct tc_to_netdev;
 struct net_device;
 struct nfp_app;
 struct nfp_pf;
@@ -108,6 +109,9 @@ struct nfp_port {
 
 extern const struct switchdev_ops nfp_port_switchdev_ops;
 
+int nfp_port_setup_tc(struct net_device *netdev, u32 handle, u32 chain_index,
+                     __be16 proto, struct tc_to_netdev *tc);
+
 struct nfp_port *nfp_port_from_netdev(struct net_device *netdev);
 struct nfp_port *
 nfp_port_from_id(struct nfp_pf *pf, enum nfp_port_type type, unsigned int id);