summaryrefslogtreecommitdiff
path: root/link.c
AgeCommit message (Expand)AuthorFilesLines
2014-04-10link: fixed to include <sys/types.h> for caddr_tChristian Wiese1-0/+1
2013-07-11link: allow future ethtool speed formats to be supportedDaniel Borkmann1-11/+2
2013-06-04link: add link management functionsDaniel Borkmann1-0/+166
/cgit.cgi/linux/net-next.git/diff/?id=824a7e8863b3eb283343f891b11a782b4ec0d0de'>Diffstat (limited to 'net/sched/act_api.c')
-rw-r--r--net/sched/act_api.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.cdepends on the structure. It uses part of it for ethtool statistics and it's not bad but the driver assumes its size is constant as it defines string for each existing entry. The problem occurs when the structure is extended because you need to modify bna driver as well. If not any attempt to retrieve ethtool statistics results in crash in bnad_get_strings(). The patch changes BNAD_ETHTOOL_STATS_NUM so it counts real number of strings in the array and also removes rtnl_link_stats64 entries that are not used in output and are always zero. Fixes: 6e7333d "net: add rx_nohandler stat counter" Signed-off-by: Ivan Vecera <ivecera@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>