summaryrefslogtreecommitdiff
path: root/drivers/net/mlx4/mlx4.c
diff options
context:
space:
mode:
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>2017-11-23 18:38:04 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2018-01-16 18:47:49 +0100
commit55e8991e31990d505ba52d0be2cffa32c7e9b1e2 (patch)
treedeee34b1a1f0071e16a4b8109048c5aa92c64987 /drivers/net/mlx4/mlx4.c
parent024e87bef40b4cd06153cdfcb624ec28147f08d7 (diff)
downloaddpdk-55e8991e31990d505ba52d0be2cffa32c7e9b1e2.zip
dpdk-55e8991e31990d505ba52d0be2cffa32c7e9b1e2.tar.gz
dpdk-55e8991e31990d505ba52d0be2cffa32c7e9b1e2.tar.xz
net/mlx4: restore inner VXLAN RSS support
Inner VXLAN RSS was supported and performed by default prior to the entire mlx4 refactoring that occurred in DPDK 17.11, however so far the new Verbs RSS API did not provide means to enable it. This will be addressed in Linux 4.15 and in RDMA core. Thanks to RSS capabilities, the PMD can now probe for its support and enable it again by default. Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
Diffstat (limited to 'drivers/net/mlx4/mlx4.c')
-rw-r--r--drivers/net/mlx4/mlx4.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c
index 025b887..8c20eea 100644
--- a/drivers/net/mlx4/mlx4.c
+++ b/drivers/net/mlx4/mlx4.c
@@ -582,14 +582,15 @@ mlx4_pci_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev)
priv->hw_rss_sup = device_attr_ex.rss_caps.rx_hash_fields_mask;
if (!priv->hw_rss_sup) {
WARN("no RSS capabilities reported; disabling support"
- " for UDP RSS");
+ " for UDP RSS and inner VXLAN RSS");
/* Fake support for all possible RSS hash fields. */
priv->hw_rss_sup = ~UINT64_C(0);
priv->hw_rss_sup = mlx4_conv_rss_hf(priv, -1);
/* Filter out known unsupported fields. */
priv->hw_rss_sup &=
~(uint64_t)(IBV_RX_HASH_SRC_PORT_UDP |
- IBV_RX_HASH_DST_PORT_UDP);
+ IBV_RX_HASH_DST_PORT_UDP |
+ IBV_RX_HASH_INNER);
}
DEBUG("supported RSS hash fields mask: %016" PRIx64,
priv->hw_rss_sup);