|
@@ -5073,9 +5073,6 @@ static int be_ndo_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq,
|
|
int status = 0;
|
|
int status = 0;
|
|
u8 hsw_mode;
|
|
u8 hsw_mode;
|
|
|
|
|
|
- if (!sriov_enabled(adapter))
|
|
|
|
- return 0;
|
|
|
|
-
|
|
|
|
/* BE and Lancer chips support VEB mode only */
|
|
/* BE and Lancer chips support VEB mode only */
|
|
if (BEx_chip(adapter) || lancer_chip(adapter)) {
|
|
if (BEx_chip(adapter) || lancer_chip(adapter)) {
|
|
hsw_mode = PORT_FWD_TYPE_VEB;
|
|
hsw_mode = PORT_FWD_TYPE_VEB;
|
|
@@ -5085,6 +5082,9 @@ static int be_ndo_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq,
|
|
NULL);
|
|
NULL);
|
|
if (status)
|
|
if (status)
|
|
return 0;
|
|
return 0;
|
|
|
|
+
|
|
|
|
+ if (hsw_mode == PORT_FWD_TYPE_PASSTHRU)
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
|
|
|
|
return ndo_dflt_bridge_getlink(skb, pid, seq, dev,
|
|
return ndo_dflt_bridge_getlink(skb, pid, seq, dev,
|