diff options
author | Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com> | 2011-03-06 22:09:36 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-07 18:26:58 -0500 |
commit | f21b538ced88a39a6dd9ef4e2c5d9aac300f428b (patch) | |
tree | c88c1f878827433a7ca534b2500d94f9d8292641 /drivers/net/benet | |
parent | 63fcb27fdce614ac1b7cc6251bfcb7077f3002b3 (diff) |
be2net: Add multicast filter capability for Lancer
Lancer requires multicast capability flag set during IFACE_CREATE
for adding multicast filters.
Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: Subramanian Seetharaman <subbu.seetharaman@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r-- | drivers/net/benet/be_cmds.h | 3 | ||||
-rw-r--r-- | drivers/net/benet/be_main.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/benet/be_cmds.h b/drivers/net/benet/be_cmds.h index 5bdaa22dee8..b4ac3938b29 100644 --- a/drivers/net/benet/be_cmds.h +++ b/drivers/net/benet/be_cmds.h | |||
@@ -518,7 +518,8 @@ enum be_if_flags { | |||
518 | BE_IF_FLAGS_VLAN = 0x100, | 518 | BE_IF_FLAGS_VLAN = 0x100, |
519 | BE_IF_FLAGS_MCAST_PROMISCUOUS = 0x200, | 519 | BE_IF_FLAGS_MCAST_PROMISCUOUS = 0x200, |
520 | BE_IF_FLAGS_PASS_L2_ERRORS = 0x400, | 520 | BE_IF_FLAGS_PASS_L2_ERRORS = 0x400, |
521 | BE_IF_FLAGS_PASS_L3L4_ERRORS = 0x800 | 521 | BE_IF_FLAGS_PASS_L3L4_ERRORS = 0x800, |
522 | BE_IF_FLAGS_MULTICAST = 0x1000 | ||
522 | }; | 523 | }; |
523 | 524 | ||
524 | /* An RX interface is an object with one or more MAC addresses and | 525 | /* An RX interface is an object with one or more MAC addresses and |
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index a7fd833fe7d..68f10781732 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c | |||
@@ -2263,7 +2263,9 @@ static int be_setup(struct be_adapter *adapter) | |||
2263 | int status; | 2263 | int status; |
2264 | u8 mac[ETH_ALEN]; | 2264 | u8 mac[ETH_ALEN]; |
2265 | 2265 | ||
2266 | cap_flags = en_flags = BE_IF_FLAGS_UNTAGGED | BE_IF_FLAGS_BROADCAST; | 2266 | cap_flags = en_flags = BE_IF_FLAGS_UNTAGGED | |
2267 | BE_IF_FLAGS_BROADCAST | | ||
2268 | BE_IF_FLAGS_MULTICAST; | ||
2267 | 2269 | ||
2268 | if (be_physfn(adapter)) { | 2270 | if (be_physfn(adapter)) { |
2269 | cap_flags |= BE_IF_FLAGS_MCAST_PROMISCUOUS | | 2271 | cap_flags |= BE_IF_FLAGS_MCAST_PROMISCUOUS | |