net: hns: Fix ethtool private flags
authorMatthias Brugger <matthias.bgg@gmail.com>
Thu, 15 Mar 2018 16:54:20 +0000 (17:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Mar 2018 23:48:26 +0000 (19:48 -0400)
commitd61d263c8d82db7c4404a29ebc29674b1c0c05c9
treeb47f21dd62dd518a1bd432bf2a8d726b56f91f4d
parentbcdd5de80a2275f7879dc278bfc747f1caf94442
net: hns: Fix ethtool private flags

The driver implementation returns support for private flags, while
no private flags are present. When asked for the number of private
flags it returns the number of statistic flag names.

Fix this by returning EOPNOTSUPP for not implemented ethtool flags.

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c