|
|
@@ -752,6 +752,9 @@ struct netdev_phys_port_id {
|
|
|
unsigned char id_len;
|
|
|
};
|
|
|
|
|
|
+typedef u16 (*select_queue_fallback_t)(struct net_device *dev,
|
|
|
+ struct sk_buff *skb);
|
|
|
+
|
|
|
/*
|
|
|
* This structure defines the management hooks for network devices.
|
|
|
* The following hooks can be defined; unless noted otherwise, they are
|
|
|
@@ -783,7 +786,7 @@ struct netdev_phys_port_id {
|
|
|
* Required can not be NULL.
|
|
|
*
|
|
|
* u16 (*ndo_select_queue)(struct net_device *dev, struct sk_buff *skb,
|
|
|
- * void *accel_priv);
|
|
|
+ * void *accel_priv, select_queue_fallback_t fallback);
|
|
|
* Called to decide which queue to when device supports multiple
|
|
|
* transmit queues.
|
|
|
*
|
|
|
@@ -1005,7 +1008,8 @@ struct net_device_ops {
|
|
|
struct net_device *dev);
|
|
|
u16 (*ndo_select_queue)(struct net_device *dev,
|
|
|
struct sk_buff *skb,
|
|
|
- void *accel_priv);
|
|
|
+ void *accel_priv,
|
|
|
+ select_queue_fallback_t fallback);
|
|
|
void (*ndo_change_rx_flags)(struct net_device *dev,
|
|
|
int flags);
|
|
|
void (*ndo_set_rx_mode)(struct net_device *dev);
|
|
|
@@ -1551,7 +1555,6 @@ static inline void netdev_for_each_tx_queue(struct net_device *dev,
|
|
|
struct netdev_queue *netdev_pick_tx(struct net_device *dev,
|
|
|
struct sk_buff *skb,
|
|
|
void *accel_priv);
|
|
|
-u16 __netdev_pick_tx(struct net_device *dev, struct sk_buff *skb);
|
|
|
|
|
|
/*
|
|
|
* Net namespace inlines
|