提交 2b5a4ace 编写于 作者: A artpol 提交者: David S. Miller

mii: add support of pause frames in mii_get_an

Add support of pause frames advertise in mii_get_an. This provides all drivers
that use mii_ethtool_gset to represent their own and Link partner flow control
abilities in ethtool.
Signed-off-by: NArtem Polyakov <artpol84@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 eee9700c
...@@ -49,6 +49,10 @@ static u32 mii_get_an(struct mii_if_info *mii, u16 addr) ...@@ -49,6 +49,10 @@ static u32 mii_get_an(struct mii_if_info *mii, u16 addr)
result |= ADVERTISED_100baseT_Half; result |= ADVERTISED_100baseT_Half;
if (advert & ADVERTISE_100FULL) if (advert & ADVERTISE_100FULL)
result |= ADVERTISED_100baseT_Full; result |= ADVERTISED_100baseT_Full;
if (advert & ADVERTISE_PAUSE_CAP)
result |= ADVERTISED_Pause;
if (advert & ADVERTISE_PAUSE_ASYM)
result |= ADVERTISED_Asym_Pause;
return result; return result;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册