-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: bridge: vlan: add basic option dumping support
We'll be dumping the options for the whole range if they're equal. The first range vlan will be used to extract the options. The commit doesn't change anything yet it just adds the skeleton for the support. The dump will happen when the first option is added. Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Nikolay Aleksandrov
authored and
David S. Miller
committed
Jan 24, 2020
1 parent
ac0e932
commit 7a53e71
Showing
4 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
// Copyright (c) 2020, Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | ||
#include <linux/kernel.h> | ||
#include <linux/netdevice.h> | ||
#include <linux/rtnetlink.h> | ||
#include <linux/slab.h> | ||
|
||
#include "br_private.h" | ||
|
||
/* check if the options between two vlans are equal */ | ||
bool br_vlan_opts_eq(const struct net_bridge_vlan *v1, | ||
const struct net_bridge_vlan *v2) | ||
{ | ||
return true; | ||
} | ||
|
||
bool br_vlan_opts_fill(struct sk_buff *skb, const struct net_bridge_vlan *v) | ||
{ | ||
return true; | ||
} | ||
|
||
size_t br_vlan_opts_nl_size(void) | ||
{ | ||
return 0; | ||
} |