summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMina Almasry <almasrymina@google.com>2024-05-01 23:25:40 +0000
committerDavid S. Miller <davem@davemloft.net>2024-05-05 14:35:33 +0100
commit087b24de5c825c53f15a9481b94f757223c20610 (patch)
tree2e65f79341c3bea0d2f371c8b2d4a5fb9d2315b6 /include/linux
parent173e7622ccb3f46834bd4176ed363f435e142942 (diff)
downloadlinux-stable-087b24de5c825c53f15a9481b94f757223c20610.tar.gz
linux-stable-087b24de5c825c53f15a9481b94f757223c20610.tar.bz2
linux-stable-087b24de5c825c53f15a9481b94f757223c20610.zip
queue_api: define queue api
This API enables the net stack to reset the queues used for devmem TCP. Signed-off-by: Mina Almasry <almasrymina@google.com> Signed-off-by: Shailend Chand <shailend@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/netdevice.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 2814a15eed73..cf261fb89d73 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1957,6 +1957,7 @@ enum netdev_reg_state {
* @sysfs_rx_queue_group: Space for optional per-rx queue attributes
* @rtnl_link_ops: Rtnl_link_ops
* @stat_ops: Optional ops for queue-aware statistics
+ * @queue_mgmt_ops: Optional ops for queue management
*
* @gso_max_size: Maximum size of generic segmentation offload
* @tso_max_size: Device (as in HW) limit on the max TSO request size
@@ -2340,6 +2341,8 @@ struct net_device {
const struct netdev_stat_ops *stat_ops;
+ const struct netdev_queue_mgmt_ops *queue_mgmt_ops;
+
/* for setting kernel sock attribute on TCP connection setup */
#define GSO_MAX_SEGS 65535u
#define GSO_LEGACY_MAX_SIZE 65536u