You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Joshua Washington says:
====================
Basic XDP Support for DQO RDA Queue Format
This patch series updates the GVE XDP infrastructure and introduces
XDP_PASS and XDP_DROP support for the DQO RDA queue format.
The infrastructure changes of note include an allocation path refactor
for XDP queues, and a unification of RX buffer sizes across queue
formats.
This patch series will be followed by more patch series to introduce
XDP_TX and XDP_REDIRECT support, as well as zero-copy and multi-buffer
support.
====================
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
dev_err(&priv->pdev->dev, "XDP load failed: The number of configured RX queues should be equal to the number of configured TX queues and the number of configured RX/TX queues should be less than or equal to half the maximum number of RX/TX queues");
499
-
return-EINVAL;
494
+
if (priv->xdp_prog) {
495
+
if (new_tx!=new_rx||
496
+
(2*new_tx>priv->tx_cfg.max_queues)) {
497
+
dev_err(&priv->pdev->dev, "The number of configured RX queues should be equal to the number of configured TX queues and the number of configured RX/TX queues should be less than or equal to half the maximum number of RX/TX queues when XDP program is installed");
498
+
return-EINVAL;
499
+
}
500
+
501
+
/* One XDP TX queue per RX queue. */
502
+
new_tx_cfg.num_xdp_queues=new_rx;
503
+
} else {
504
+
new_tx_cfg.num_xdp_queues=0;
500
505
}
501
506
502
507
if (new_rx!=priv->rx_cfg.num_queues&&
@@ -642,8 +647,7 @@ static int gve_set_tunable(struct net_device *netdev,
0 commit comments