diff options
author | yankejian <yankejian@huawei.com> | 2015-10-13 04:53:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-14 16:52:48 +0300 |
commit | 4568637f7a20bbb1dcbf8ada56de08f6c940bcbd (patch) | |
tree | 3fef8f6bced3c092ff614d1e49548cd59910804f /drivers/net/ethernet/hisilicon/hns/hnae.h | |
parent | 02a6d6136fa2a17f400a030829a6435556b3e65b (diff) | |
download | linux-4568637f7a20bbb1dcbf8ada56de08f6c940bcbd.tar.xz |
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.h | 1 |
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 d4a1eb1b8e54..cec95ac8687d 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); |