From 5c71fff64af35a4fdc02bab667c5bd702249e488 Mon Sep 17 00:00:00 2001 From: Sujith Sankar Date: Tue, 21 Apr 2015 11:21:28 +0530 Subject: [PATCH] enic: remove use of old flow director struct This patch removes the use of rte_fdir_filter from enic_clsf. This also takes care of modifying the version and copyright string. Signed-off-by: Sujith Sankar --- lib/librte_pmd_enic/enic.h | 4 ++-- lib/librte_pmd_enic/enic_clsf.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_pmd_enic/enic.h b/lib/librte_pmd_enic/enic.h index 7528d7d0be..1417b0cac9 100644 --- a/lib/librte_pmd_enic/enic.h +++ b/lib/librte_pmd_enic/enic.h @@ -49,8 +49,8 @@ #define DRV_NAME "enic_pmd" #define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Poll-mode Driver" -#define DRV_VERSION "1.0.0.4" -#define DRV_COPYRIGHT "Copyright 2008-2014 Cisco Systems, Inc" +#define DRV_VERSION "1.0.0.5" +#define DRV_COPYRIGHT "Copyright 2008-2015 Cisco Systems, Inc" #define ENIC_WQ_MAX 8 #define ENIC_RQ_MAX 8 diff --git a/lib/librte_pmd_enic/enic_clsf.c b/lib/librte_pmd_enic/enic_clsf.c index 937723e002..ca12d2d09a 100644 --- a/lib/librte_pmd_enic/enic_clsf.c +++ b/lib/librte_pmd_enic/enic_clsf.c @@ -246,7 +246,7 @@ int enic_clsf_init(struct enic *enic) .name = "enicpmd_clsf_hash", .entries = ENICPMD_CLSF_HASH_ENTRIES, .bucket_entries = ENICPMD_CLSF_BUCKET_ENTRIES, - .key_len = sizeof(struct rte_fdir_filter), + .key_len = RTE_HASH_KEY_LENGTH_MAX, .hash_func = DEFAULT_HASH_FUNC, .hash_func_init_val = 0, .socket_id = SOCKET_0, -- 2.20.1