add a patch to query fw support for advanced filtering
authorHanoh Haim <[email protected]>
Sun, 13 Nov 2016 12:59:17 +0000 (14:59 +0200)
committerHanoh Haim <[email protected]>
Sun, 13 Nov 2016 13:03:21 +0000 (15:03 +0200)
Signed-off-by: Hanoh Haim <[email protected]>
src/dpdk/drivers/net/enic/enic_ethdev.c

index a4af14d..c05476b 100644 (file)
@@ -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)
 {