Lancer FW has added new capability checks for VFs.
Driver should only use those capabilities which are allowed for VFs.
Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
                /* Reset mcast promisc mode if already set by setting mask
                 * and not setting flags field
                 */
-               req->if_flags_mask |=
+               if (!lancer_chip(adapter) || be_physfn(adapter))
+                       req->if_flags_mask |=
                                cpu_to_le32(BE_IF_FLAGS_MCAST_PROMISCUOUS);
 
                req->mcast_num = cpu_to_le32(netdev_mc_count(adapter->netdev));
 
                en_flags |= BE_IF_FLAGS_RSS;
        }
 
+       if (lancer_chip(adapter) && !be_physfn(adapter)) {
+               en_flags = BE_IF_FLAGS_UNTAGGED |
+                           BE_IF_FLAGS_BROADCAST |
+                           BE_IF_FLAGS_MULTICAST;
+               cap_flags = en_flags;
+       }
+
        status = be_cmd_if_create(adapter, cap_flags, en_flags,
                                  &adapter->if_handle, 0);
        if (status != 0)