Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1665498 > unrolled thread

[PATCH] net: update undefined ->ndo_change_mtu() comment

Started byMagnus Damm <magnus.damm@gmail.com>
First post2017-06-14 09:20 +0200
Last post2017-06-14 21:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] net: update undefined ->ndo_change_mtu() comment Magnus Damm <magnus.damm@gmail.com> - 2017-06-14 09:20 +0200
    Re: [PATCH] net: update undefined ->ndo_change_mtu() comment David Miller <davem@davemloft.net> - 2017-06-14 21:20 +0200

#1665498 — [PATCH] net: update undefined ->ndo_change_mtu() comment

FromMagnus Damm <magnus.damm@gmail.com>
Date2017-06-14 09:20 +0200
Subject[PATCH] net: update undefined ->ndo_change_mtu() comment
Message-ID<tSaKS-2aJ-7@gated-at.bofh.it>
From: Magnus Damm <damm+renesas@opensource.se>

Update ->ndo_change_mtu() callback comment to remove text
about returning error in case of undefined callback. This
change makes the comment match the existing code behavior.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 Applies on top of next-20170613

 include/linux/netdevice.h |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- 0002/include/linux/netdevice.h
+++ work/include/linux/netdevice.h	2017-04-29 16:23:13.980607110 +0900
@@ -910,8 +910,7 @@ struct netdev_xdp {
  *
  * int (*ndo_change_mtu)(struct net_device *dev, int new_mtu);
  *	Called when a user wants to change the Maximum Transfer Unit
- *	of a device. If not defined, any request to change MTU will
- *	will return an error.
+ *	of a device.
  *
  * void (*ndo_tx_timeout)(struct net_device *dev);
  *	Callback used when the transmitter has not made any progress

[toc] | [next] | [standalone]


#1666160

FromDavid Miller <davem@davemloft.net>
Date2017-06-14 21:20 +0200
Message-ID<tSlZE-Jv-9@gated-at.bofh.it>
In reply to#1665498
From: Magnus Damm <magnus.damm@gmail.com>
Date: Wed, 14 Jun 2017 16:15:24 +0900

> From: Magnus Damm <damm+renesas@opensource.se>
> 
> Update ->ndo_change_mtu() callback comment to remove text
> about returning error in case of undefined callback. This
> change makes the comment match the existing code behavior.
> 
> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>

Applied, thanks Magnus.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web