netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: vnet: relocate netlink code section comment
@ 2015-07-19  7:40 Baruch Siach
  2015-07-20 17:07 ` Cong Wang
  0 siblings, 1 reply; 4+ messages in thread
From: Baruch Siach @ 2015-07-19  7:40 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, Baruch Siach

The veth_setup() routine and the VETH_FEATURES macro are also part of the
netlink interface (referenced from struct rtnl_link_ops). Include them under
the netlink code section comment.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 drivers/net/veth.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/veth.c b/drivers/net/veth.c
index c8186ffda1a3..791fc1e13bc4 100644
--- a/drivers/net/veth.c
+++ b/drivers/net/veth.c
@@ -292,6 +292,10 @@ static const struct net_device_ops veth_netdev_ops = {
 	.ndo_get_iflink		= veth_get_iflink,
 };
 
+/*
+ * netlink interface
+ */
+
 #define VETH_FEATURES (NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_ALL_TSO |    \
 		       NETIF_F_HW_CSUM | NETIF_F_RXCSUM | NETIF_F_HIGHDMA | \
 		       NETIF_F_GSO_GRE | NETIF_F_GSO_UDP_TUNNEL |	    \
@@ -321,10 +325,6 @@ static void veth_setup(struct net_device *dev)
 	dev->hw_enc_features = VETH_FEATURES;
 }
 
-/*
- * netlink interface
- */
-
 static int veth_validate(struct nlattr *tb[], struct nlattr *data[])
 {
 	if (tb[IFLA_ADDRESS]) {
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-20 18:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-19  7:40 [PATCH] net: vnet: relocate netlink code section comment Baruch Siach
2015-07-20 17:07 ` Cong Wang
2015-07-20 17:12   ` Baruch Siach
2015-07-20 18:51     ` Cong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).