]> git.itanic.dy.fi Git - linux-stable/commitdiff
net/sched: move struct tc_mqprio_qopt_offload from pkt_cls.h to pkt_sched.h
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 4 Feb 2023 13:52:57 +0000 (15:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Feb 2023 10:06:43 +0000 (10:06 +0000)
Since mqprio is a scheduler and not a classifier, move its offload
structure to pkt_sched.h, where struct tc_taprio_qopt_offload also lies.

Also update some header inclusions in drivers that access this
structure, to the best of my abilities.

Cc: Igor Russkikh <irusskikh@marvell.com>
Cc: Yisen Zhuang <yisen.zhuang@huawei.com>
Cc: Salil Mehta <salil.mehta@huawei.com>
Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
Cc: Tony Nguyen <anthony.l.nguyen@intel.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Saeed Mahameed <saeedm@nvidia.com>
Cc: Leon Romanovsky <leon@kernel.org>
Cc: Horatiu Vultur <horatiu.vultur@microchip.com>
Cc: Lars Povlsen <lars.povlsen@microchip.com>
Cc: Steen Hegelund <Steen.Hegelund@microchip.com>
Cc: Daniel Machon <daniel.machon@microchip.com>
Cc: UNGLinuxDriver@microchip.com
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
14 files changed:
drivers/net/ethernet/aquantia/atlantic/aq_main.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.h
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/iavf/iavf.h
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/marvell/mvneta.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/microchip/lan966x/lan966x_tc.c
drivers/net/ethernet/microchip/sparx5/sparx5_tc.c
drivers/net/ethernet/ti/cpsw_priv.c
include/net/pkt_cls.h
include/net/pkt_sched.h

index 77609dc0a08d6021c55645becd73732dd815dcd9..0b2a52199914b718d6091b53a9494e3466cc5786 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/ip.h>
 #include <linux/udp.h>
 #include <net/pkt_cls.h>
+#include <net/pkt_sched.h>
 #include <linux/filter.h>
 
 MODULE_LICENSE("GPL v2");
index be96f1dc03728ffc138158c8f27fa786eea9d2bd..d4a862a9fd7dad5277cb6d9a856e5dba19363714 100644 (file)
@@ -4,7 +4,7 @@
 #ifndef __CXGB4_TC_MQPRIO_H__
 #define __CXGB4_TC_MQPRIO_H__
 
-#include <net/pkt_cls.h>
+#include <net/pkt_sched.h>
 
 #define CXGB4_EOSW_TXQ_DEFAULT_DESC_NUM 128
 
index 17137de9338cf7aacf7fbb480765b91c2b27cd2f..40f4306449eb257f2c2488f06c1ca62bc1a57988 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/pkt_sched.h>
 #include <linux/types.h>
 #include <net/pkt_cls.h>
+#include <net/pkt_sched.h>
 
 #define HNAE3_MOD_VERSION "1.0"
 
index b4c4fb873568c6c8f2a40719166ee21b69b63727..25be7f8ac7cd5cbbe6c6f73801af20658aaeaf47 100644 (file)
@@ -20,6 +20,7 @@
 #include <net/gro.h>
 #include <net/ip6_checksum.h>
 #include <net/pkt_cls.h>
+#include <net/pkt_sched.h>
 #include <net/tcp.h>
 #include <net/vxlan.h>
 #include <net/geneve.h>
index 60e351665c707fdee41c4b31a637e8d3385163e6..38c341b9f368d14a278182912558c66e46589803 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/net_tstamp.h>
 #include <linux/ptp_clock_kernel.h>
 #include <net/pkt_cls.h>
+#include <net/pkt_sched.h>
 #include <net/tc_act/tc_gact.h>
 #include <net/tc_act/tc_mirred.h>
 #include <net/udp_tunnel.h>
index 23bc000e77b8001edeb3c37cf86a68b20f762c71..232bc61d9eee9ce6c2eb7a6a3c758ac22cfe20b3 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/jiffies.h>
 #include <net/ip6_checksum.h>
 #include <net/pkt_cls.h>
+#include <net/pkt_sched.h>
 #include <net/udp.h>
 #include <net/tc_act/tc_gact.h>
 #include <net/tc_act/tc_mirred.h>
index 5f696ae5eaa0a9bd1cf60e2ddd04e760097dbad5..7bd50e49312c98c1d95a8cf47149aa462ca5915b 100644 (file)
@@ -41,6 +41,7 @@
 #include <linux/dim.h>
 #include <linux/gnss.h>
 #include <net/pkt_cls.h>
+#include <net/pkt_sched.h>
 #include <net/tc_act/tc_mirred.h>
 #include <net/tc_act/tc_gact.h>
 #include <net/ip.h>
index f8925cac61e46f278eeedffb2a1bcf8eb6fa33e7..a48588c8031766060517ba2507a363f33f5713bd 100644 (file)
@@ -38,7 +38,7 @@
 #include <net/ipv6.h>
 #include <net/tso.h>
 #include <net/page_pool.h>
-#include <net/pkt_cls.h>
+#include <net/pkt_sched.h>
 #include <linux/bpf_trace.h>
 
 /* Registers */
index 27f90baac768854f9d95c681526d2fe9d20d9fc6..3973d86905e843702f4e54347b8a319521be2a7f 100644 (file)
@@ -39,6 +39,7 @@
 #include <linux/if_bridge.h>
 #include <linux/filter.h>
 #include <net/page_pool.h>
+#include <net/pkt_sched.h>
 #include <net/xdp_sock_drv.h>
 #include "eswitch.h"
 #include "en.h"
index 80625ba0b354da34c1226b56a3531e6473425091..cf0cc7562d0423fc09f284eb8e52168dd635eb7b 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0+
 
 #include <net/pkt_cls.h>
+#include <net/pkt_sched.h>
 
 #include "lan966x_main.h"
 
index 205246b5af82af89f03897328d6f8b64ca8ee463..e80f3166db7d31cef71049665a95b7318d7ba7f2 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <net/pkt_cls.h>
+#include <net/pkt_sched.h>
 
 #include "sparx5_tc.h"
 #include "sparx5_main.h"
index 758295c898ac9b87959b5f2f3f84bd77ee0b9301..e966dd47e2db35ed30f3c365d3b9acd43ebd9fe0 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/skbuff.h>
 #include <net/page_pool.h>
 #include <net/pkt_cls.h>
+#include <net/pkt_sched.h>
 
 #include "cpsw.h"
 #include "cpts.h"
index 4cabb32a2ad944a22c2f19898499649b2d8f9347..cd410a87517b03c32c88b0c0c446ad0a64a0f08b 100644 (file)
@@ -788,16 +788,6 @@ struct tc_cls_bpf_offload {
        bool exts_integrated;
 };
 
-struct tc_mqprio_qopt_offload {
-       /* struct tc_mqprio_qopt must always be the first element */
-       struct tc_mqprio_qopt qopt;
-       u16 mode;
-       u16 shaper;
-       u32 flags;
-       u64 min_rate[TC_QOPT_MAX_QUEUE];
-       u64 max_rate[TC_QOPT_MAX_QUEUE];
-};
-
 /* This structure holds cookie structure that is passed from user
  * to the kernel for actions and classifiers
  */
index 38207873eda69bb708c54822b12e6b4419e3ca64..6c5e64e0a0bb16ad7126980bd797126f1a70deb9 100644 (file)
@@ -160,6 +160,16 @@ struct tc_etf_qopt_offload {
        s32 queue;
 };
 
+struct tc_mqprio_qopt_offload {
+       /* struct tc_mqprio_qopt must always be the first element */
+       struct tc_mqprio_qopt qopt;
+       u16 mode;
+       u16 shaper;
+       u32 flags;
+       u64 min_rate[TC_QOPT_MAX_QUEUE];
+       u64 max_rate[TC_QOPT_MAX_QUEUE];
+};
+
 struct tc_taprio_caps {
        bool supports_queue_max_sdu:1;
 };