* [PATCH] net: update undefined ->ndo_change_mtu() comment
@ 2017-06-14 7:15 Magnus Damm
2017-06-14 19:15 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2017-06-14 7:15 UTC (permalink / raw)
To: netdev; +Cc: Magnus Damm, linux-kernel, davem
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] net: update undefined ->ndo_change_mtu() comment
2017-06-14 7:15 [PATCH] net: update undefined ->ndo_change_mtu() comment Magnus Damm
@ 2017-06-14 19:15 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-06-14 19:15 UTC (permalink / raw)
To: magnus.damm; +Cc: netdev, linux-kernel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-14 19:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-14 7:15 [PATCH] net: update undefined ->ndo_change_mtu() comment Magnus Damm
2017-06-14 19:15 ` David Miller
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).