summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns/hnae.h
diff options
context:
space:
mode:
authoryankejian <yankejian@huawei.com>2015-10-13 09:53:45 +0800
committerDavid S. Miller <davem@davemloft.net>2015-10-14 06:52:48 -0700
commit4568637f7a20bbb1dcbf8ada56de08f6c940bcbd (patch)
tree3fef8f6bced3c092ff614d1e49548cd59910804f /drivers/net/ethernet/hisilicon/hns/hnae.h
parent02a6d6136fa2a17f400a030829a6435556b3e65b (diff)
downloadop-kernel-dev-4568637f7a20bbb1dcbf8ada56de08f6c940bcbd.zip
op-kernel-dev-4568637f7a20bbb1dcbf8ada56de08f6c940bcbd.tar.gz
net: hisilicon: supports promisc mode
this patch adds support to set promisc mode. it configs the queue on init seq when it is on promisc mode.and being enabled or disabled promisc mode by upper level user. Signed-off-by: yankejian <yankejian@huawei.com> Signed-off-by: Yisen Zhuang <yisen.zhuang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns/hnae.h')
-rw-r--r--drivers/net/ethernet/hisilicon/hns/hnae.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns/hnae.h b/drivers/net/ethernet/hisilicon/hns/hnae.h
index d4a1eb1..cec95ac 100644
--- a/drivers/net/ethernet/hisilicon/hns/hnae.h
+++ b/drivers/net/ethernet/hisilicon/hns/hnae.h
@@ -430,6 +430,7 @@ struct hnae_ae_ops {
void (*set_coalesce_usecs)(struct hnae_handle *handle, u32 timeout);
int (*set_coalesce_frames)(struct hnae_handle *handle,
u32 coalesce_frames);
+ void (*set_promisc_mode)(struct hnae_handle *handle, u32 en);
int (*get_mac_addr)(struct hnae_handle *handle, void **p);
int (*set_mac_addr)(struct hnae_handle *handle, void *p);
int (*set_mc_addr)(struct hnae_handle *handle, void *addr);
OpenPOWER on IntegriCloud