diff options
author | Maor Gottlieb | 2016-04-29 00:36:40 +0200 |
---|---|---|
committer | David S. Miller | 2016-04-29 22:29:11 +0200 |
commit | 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c (patch) | |
tree | ce0d2ebd3b9d2f21964aa256775203c6f19aa1c2 /drivers/net/ethernet/mellanox/mlx5/core/en_main.c | |
parent | net/mlx5: Initializing CPU reverse mapping (diff) | |
download | kernel-qcow2-linux-1cabe6b0965ec067ac60e8f182f16d479a3b9a5c.tar.gz kernel-qcow2-linux-1cabe6b0965ec067ac60e8f182f16d479a3b9a5c.tar.xz kernel-qcow2-linux-1cabe6b0965ec067ac60e8f182f16d479a3b9a5c.zip |
net/mlx5e: Create aRFS flow tables
Create the following four flow tables for aRFS usage:
1. IPv4 TCP - filtering 4-tuple of IPv4 TCP packets.
2. IPv6 TCP - filtering 4-tuple of IPv6 TCP packets.
3. IPv4 UDP - filtering 4-tuple of IPv4 UDP packets.
4. IPv6 UDP - filtering 4-tuple of IPv6 UDP packets.
Each flow table has two flow groups: one for the 4-tuple
filtering (full match) and the other contains * rule for miss rule.
Full match rule means a hit for aRFS and packet will be forwarded
to the dedicated RQ/Core, miss rule packets will be forwarded to
default RSS hashing.
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_main.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index 8fee224fb98c..20167b9403b6 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -2803,8 +2803,12 @@ static void mlx5e_build_netdev(struct net_device *netdev) if (FT_CAP(flow_modify_en) && FT_CAP(modify_root) && FT_CAP(identified_miss_table_mode) && - FT_CAP(flow_table_modify)) - priv->netdev->hw_features |= NETIF_F_HW_TC; + FT_CAP(flow_table_modify)) { + netdev->hw_features |= NETIF_F_HW_TC; +#ifdef CONFIG_RFS_ACCEL + netdev->hw_features |= NETIF_F_NTUPLE; +#endif + } netdev->features |= NETIF_F_HIGHDMA; |