aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/marvell/octeontx2/af/common.h
diff options
context:
space:
mode:
authorJerin Jacob <jerinjacobk@gmail.com>2018-12-02 18:17:39 +0530
committerDavid S. Miller <davem@davemloft.net>2018-12-03 16:23:07 -0800
commit7ee74697e557ab9638d7fdcc091c5d25fc78af3d (patch)
treed9c24c5d71a182f0fc0a22fd9cccca3eda864638 /drivers/net/ethernet/marvell/octeontx2/af/common.h
parentocteontx2-af: Add support for dynamic flow cfg to RSS field generation (diff)
downloadlinux-dev-7ee74697e557ab9638d7fdcc091c5d25fc78af3d.tar.xz
linux-dev-7ee74697e557ab9638d7fdcc091c5d25fc78af3d.zip
octeontx2-af: Add support for runtime RSS algo index reservation
Introduced reserve_flowkey_alg_idx()to reserve RSS algorithm index, it would internally use set_flowkey_fields() to generate fields based on the flow key dynamically. On AF driver init, it would reserve a predefined set RSS algo indexes, which will be available all the time for all the AF driver consumers. The leftover algo indexes can be reserved at runtime through exiting nix_rss_flowkey_cfg mailbox message. The NIX_FLOW_KEY_TYPE_PORT is removed from predefined a set of RSS flow type as it is not used by any consumer. Signed-off-by: Jerin Jacob <jerinj@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/octeontx2/af/common.h')
-rw-r--r--drivers/net/ethernet/marvell/octeontx2/af/common.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/common.h b/drivers/net/ethernet/marvell/octeontx2/af/common.h
index ceb3f1dbede5..72ad04eb8769 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/common.h
+++ b/drivers/net/ethernet/marvell/octeontx2/af/common.h
@@ -193,18 +193,4 @@ enum nix_scheduler {
#define DEFAULT_RSS_CONTEXT_GROUP 0
#define MAX_RSS_INDIR_TBL_SIZE 256 /* 1 << Max adder bits */
-/* NIX flow tag algorithm indices, max is 31 */
-enum {
- NIX_FLOW_KEY_ALG_PORT,
- NIX_FLOW_KEY_ALG_IP,
- NIX_FLOW_KEY_ALG_TCP,
- NIX_FLOW_KEY_ALG_UDP,
- NIX_FLOW_KEY_ALG_SCTP,
- NIX_FLOW_KEY_ALG_TCP_UDP,
- NIX_FLOW_KEY_ALG_TCP_SCTP,
- NIX_FLOW_KEY_ALG_UDP_SCTP,
- NIX_FLOW_KEY_ALG_TCP_UDP_SCTP,
- NIX_FLOW_KEY_ALG_MAX,
-};
-
#endif /* COMMON_H */