]> asedeno.scripts.mit.edu Git - linux.git/commit
net: netcp: add api to support set rx mode in netcp modules
authorWingMan Kwok <w-kwok2@ti.com>
Tue, 17 Apr 2018 21:30:41 +0000 (17:30 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 01:00:57 +0000 (21:00 -0400)
commit0542a87c546726510e7a572b16c5493ca42024c4
tree02b94c130c0305b5d1eb1919496fe24ff6c4c364
parent21f706bb10cf7d905d89ceb3f689b8b844520127
net: netcp: add api to support set rx mode in netcp modules

This patch adds an API to support setting rx mode in
netcp modules.  If a netcp module needs to be notified
when upper layer transitions from one rx mode to
another and react accordingly, such a module will implement
the new API set_rx_mode added in this patch.  Currently
rx modes supported are PROMISCUOUS and NON_PROMISCUOUS
modes.

Signed-off-by: WingMan Kwok <w-kwok2@ti.com>
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp.h
drivers/net/ethernet/ti/netcp_core.c