Imported Upstream version 16.11
[deb_dpdk.git] / drivers / net / enic / enic_res.c
index 84c5d33..8a230a1 100644 (file)
@@ -62,6 +62,7 @@ int enic_get_vnic_config(struct enic *enic)
                return err;
        }
 
+
 #define GET_CONFIG(m) \
        do { \
                err = vnic_dev_spec(enic->vdev, \
@@ -98,6 +99,10 @@ int enic_get_vnic_config(struct enic *enic)
        enic->rte_dev->data->mtu = min_t(u16, enic->max_mtu,
                                         max_t(u16, ENIC_MIN_MTU, c->mtu));
 
+       enic->adv_filters = vnic_dev_capable_adv_filters(enic->vdev);
+       dev_info(enic, "Advanced Filters %savailable\n", ((enic->adv_filters)
+                ? "" : "not "));
+
        c->wq_desc_count =
                min_t(u32, ENIC_MAX_WQ_DESCS,
                max_t(u32, ENIC_MIN_WQ_DESCS,