summaryrefslogtreecommitdiffstats
path: root/src/dpdk/drivers/net/enic
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-11-13 14:59:17 +0200
committerHanoh Haim <hhaim@cisco.com>2016-11-13 15:03:21 +0200
commite7d064b2d89d39d69520f2f6e7720aec65cc32de (patch)
tree4afa40e4b5c8c8cc2e3d63b5a9eea4bf5e8ba5b4 /src/dpdk/drivers/net/enic
parentc8a7c2aa57abe6f2a18a5a05be4797e7184fea39 (diff)
add a patch to query fw support for advanced filtering
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'src/dpdk/drivers/net/enic')
-rw-r--r--src/dpdk/drivers/net/enic/enic_ethdev.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/dpdk/drivers/net/enic/enic_ethdev.c b/src/dpdk/drivers/net/enic/enic_ethdev.c
index a4af14d3..c05476b2 100644
--- a/src/dpdk/drivers/net/enic/enic_ethdev.c
+++ b/src/dpdk/drivers/net/enic/enic_ethdev.c
@@ -435,6 +435,25 @@ static void enicpmd_dev_stats_reset(struct rte_eth_dev *eth_dev)
enic_dev_stats_clear(enic);
}
+
+int enicpmd_dev_get_fw_support(int port_id,
+ uint32_t *ver){
+ struct rte_eth_dev *dev;
+
+ RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -EINVAL);
+
+ dev = &rte_eth_devices[port_id];
+ *ver=0;
+
+ struct enic *enic = pmd_priv(dev);
+ enic->adv_filters;
+ if ( enic->adv_filters ==0 ) {
+ return (-1);
+ }
+ return (0);
+}
+
+
static void enicpmd_dev_info_get(struct rte_eth_dev *eth_dev,
struct rte_eth_dev_info *device_info)
{