summaryrefslogtreecommitdiffstats
path: root/fs/bad_inode.c
diff options
context:
space:
mode:
authorNithin Sujir <nsujir@broadcom.com>2013-03-08 09:01:24 +0100
committerDavid S. Miller <davem@davemloft.net>2013-03-08 19:14:58 +0100
commit84421b99cedc3443e76d2a594f3c815d5cb9a8e1 (patch)
treee0a6b178ea560ea57da344c3bdae8cf93179f0cc /fs/bad_inode.c
parentipv6: stop multicast forwarding to process interface scoped addresses (diff)
downloadlinux-84421b99cedc3443e76d2a594f3c815d5cb9a8e1.tar.xz
linux-84421b99cedc3443e76d2a594f3c815d5cb9a8e1.zip
tg3: Update link_up flag for phylib devices
Commit f4a46d1f46a8fece34edd2023e054072b02e110d introduced a bug where the ifconfig stats would remain 0 for phylib devices. This is due to tp->link_up flag never becoming true causing tg3_periodic_fetch_stats() to return. The link_up flag was being updated in tg3_test_and_report_link_chg() after setting up the phy. This function however, is not called for phylib devices since the driver does not do the phy setup. This patch moves the link_up flag update into the common tg3_link_report() function that gets called for phylib devices as well for non phylib devices when the link state changes. To avoid updating link_up twice, we replace tg3_carrier_...() calls that are followed by tg3_link_report(), with netif_carrier_...(). We can then remove the unused tg3_carrier_on() function. CC: <stable@vger.kernel.org> Reported-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/bad_inode.c')
0 files changed, 0 insertions, 0 deletions