summaryrefslogtreecommitdiffstats
path: root/include/net/netprio_cgroup.h
diff options
context:
space:
mode:
authorHiroaki SHIMODA2011-11-22 05:05:41 +0100
committerDavid S. Miller2011-11-22 21:19:07 +0100
commit202ff1c26c768efeead20b388556eda265dc8352 (patch)
tree6e05f54791196f9320ee6715667fc2bf8bd3ba53 /include/net/netprio_cgroup.h
parentatm: use SKB_TRUESIZE() in atm_guess_pdu2truesize() (diff)
downloadkernel-qcow2-linux-202ff1c26c768efeead20b388556eda265dc8352.tar.gz
kernel-qcow2-linux-202ff1c26c768efeead20b388556eda265dc8352.tar.xz
kernel-qcow2-linux-202ff1c26c768efeead20b388556eda265dc8352.zip
tg3: Fix advertisement handling
Commit 28011cf19b (net: Add ethtool to mii advertisment conversion helpers) added a helper function ethtool_adv_to_mii_100bt() and tg3_copper_is_advertising_all(), tg3_phy_autoneg_cfg() were modified to use this. Before that commit, ethtool to mii advertisement conversion was done wrt speed, but now pause operation is also taken account. So, in tg3_copper_is_advertising_all(), below condition becomes true and this makes link up fails. if ((adv_reg & ADVERTISE_ALL) != all_mask) return 0; To fix this add ADVERTISE_ALL bit and operation to cap speed, and change default advertisement not including ADVERTISED_Pause. Reported-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Hiroaki SHIMODA <shimoda.hiroaki@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netprio_cgroup.h')
0 files changed, 0 insertions, 0 deletions