summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-08-28 16:18:42 +1000
committerJoel Stanley <joel@jms.id.au>2017-10-09 17:30:38 +1030
commit9123a318aa588fb56a8b5ce5a5cebfac8f8e39a5 (patch)
treedd7f672d8c87e5f899095684460acfe2bc632f1f /include/net
parent5c67128f9d36a784badd8981751f581dec1141c6 (diff)
downloadtalos-obmc-linux-9123a318aa588fb56a8b5ce5a5cebfac8f8e39a5.tar.gz
talos-obmc-linux-9123a318aa588fb56a8b5ce5a5cebfac8f8e39a5.zip
net/ncsi: Configure VLAN tag filter
Make use of the ndo_vlan_rx_{add,kill}_vid callbacks to have the NCSI stack process new VLAN tags and configure the channel VLAN filter appropriately. Several VLAN tags can be set and a "Set VLAN Filter" packet must be sent for each one, meaning the ncsi_dev_state_config_svf state must be repeated. An internal list of VLAN tags is maintained, and compared against the current channel's ncsi_channel_filter in order to keep track within the state. VLAN filters are removed in a similar manner, with the introduction of the ncsi_dev_state_config_clear_vids state. The maximum number of VLAN tag filters is determined by the "Get Capabilities" response from the channel. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com> Signed-off-by: David S. Miller <davem@davemloft.net> (cherry picked from commit 21acf63013ed3d6fce3176cc34b74064052a31b4) Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/ncsi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/ncsi.h b/include/net/ncsi.h
index 68680baac0fd..1f96af46df49 100644
--- a/include/net/ncsi.h
+++ b/include/net/ncsi.h
@@ -28,6 +28,8 @@ struct ncsi_dev {
};
#ifdef CONFIG_NET_NCSI
+int ncsi_vlan_rx_add_vid(struct net_device *dev, __be16 proto, u16 vid);
+int ncsi_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid);
struct ncsi_dev *ncsi_register_dev(struct net_device *dev,
void (*notifier)(struct ncsi_dev *nd));
int ncsi_start_dev(struct ncsi_dev *nd);
OpenPOWER on IntegriCloud