public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH iproute2] ip-link: man: Document existence of netns argument in add command
@ 2022-12-08 18:53 Daniel Xu
  2022-12-09 18:20 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Xu @ 2022-12-08 18:53 UTC (permalink / raw)
  To: netdev; +Cc: dsahern, stephen

ip-link-add supports netns argument just like ip-link-set. This commit
documents the existence of netns in help text and man page.

Signed-off-by: Daniel Xu <dxu@dxuuu•xyz>
---
 ip/iplink.c           | 1 +
 man/man8/ip-link.8.in | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/ip/iplink.c b/ip/iplink.c
index 301a535e..adb9524c 100644
--- a/ip/iplink.c
+++ b/ip/iplink.c
@@ -68,6 +68,7 @@ void iplink_usage(void)
 			"		    [ mtu MTU ] [index IDX ]\n"
 			"		    [ numtxqueues QUEUE_COUNT ]\n"
 			"		    [ numrxqueues QUEUE_COUNT ]\n"
+			"		    [ netns { PID | NAME } ]\n"
 			"		    type TYPE [ ARGS ]\n"
 			"\n"
 			"	ip link delete { DEVICE | dev DEVICE | group DEVGROUP } type TYPE [ ARGS ]\n"
diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
index 88ad9d7b..6c72e122 100644
--- a/man/man8/ip-link.8.in
+++ b/man/man8/ip-link.8.in
@@ -43,6 +43,8 @@ ip-link \- network device configuration
 .br
 .RB "[ " gro_max_size
 .IR BYTES " ]"
+.RB "[ " netns " {"
+.IR PID " | " NETNSNAME " } ]"
 .br
 .BI type " TYPE"
 .RI "[ " ARGS " ]"
@@ -437,6 +439,10 @@ on this device.
 specifies the desired index of the new virtual device. The link
 creation fails, if the index is busy.
 
+.TP
+.BI netns " { PID | NAME } "
+specifies the desired network namespace to create interface in.
+
 .TP
 VLAN Type Support
 For a link of type
-- 
2.38.1


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

* Re: [PATCH iproute2] ip-link: man: Document existence of netns argument in add command
  2022-12-08 18:53 [PATCH iproute2] ip-link: man: Document existence of netns argument in add command Daniel Xu
@ 2022-12-09 18:20 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-12-09 18:20 UTC (permalink / raw)
  To: Daniel Xu; +Cc: netdev, dsahern, stephen

Hello:

This patch was applied to iproute2/iproute2.git (main)
by Stephen Hemminger <stephen@networkplumber•org>:

On Thu,  8 Dec 2022 11:53:06 -0700 you wrote:
> ip-link-add supports netns argument just like ip-link-set. This commit
> documents the existence of netns in help text and man page.
> 
> Signed-off-by: Daniel Xu <dxu@dxuuu•xyz>
> ---
>  ip/iplink.c           | 1 +
>  man/man8/ip-link.8.in | 6 ++++++
>  2 files changed, 7 insertions(+)

Here is the summary with links:
  - [iproute2] ip-link: man: Document existence of netns argument in add command
    https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=1a408bda2eec

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2022-12-09 18:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-08 18:53 [PATCH iproute2] ip-link: man: Document existence of netns argument in add command Daniel Xu
2022-12-09 18:20 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox