From: WANG Chao <chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
jpirko-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] ifup.sh: Add support for bridge over team and vlan tagged team
Date: Sun, 07 Apr 2013 14:47:44 +0800 [thread overview]
Message-ID: <51611690.4000502@redhat.com> (raw)
In-Reply-To: <1364819680-1618-1-git-send-email-chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
On 04/01/2013 08:34 PM, WANG Chao wrote:
> Team is the same network stack as bonding. Therefore give ifup the ability to
> handle bridge over team and vlan tagged team as bonding too.
>
> Signed-off-by: WANG Chao <chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
> modules.d/40network/ifup.sh | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
> index 582278f..815ab64 100755
> --- a/modules.d/40network/ifup.sh
> +++ b/modules.d/40network/ifup.sh
> @@ -46,6 +46,8 @@ if [ -e /tmp/bridge.info ]; then
> if [ "$netif" = "$ethname" ]; then
> if [ "$netif" = "$bondname" ] && [ -n "$DO_BOND_SETUP" ] ; then
> : # We need to really setup bond (recursive call)
> + elif [ "$netif" = "$teammaster" ] && [ -n "$DO_TEAM_SETUP" ] ; then
> + : # We need to really setup team (recursive call)
> else
> netif="$bridgename"
> use_bridge='true'
> @@ -59,6 +61,8 @@ if [ -e /tmp/vlan.info ]; then
> if [ "$netif" = "$phydevice" ]; then
> if [ "$netif" = "$bondname" ] && [ -n "$DO_BOND_SETUP" ] ; then
> : # We need to really setup bond (recursive call)
> + elif [ "$netif" = "$teammaster" ] && [ -n "$DO_TEAM_SETUP" ] ; then
> + : # We need to really setup team (recursive call)
> else
> netif="$vlanname"
> use_vlan='true'
> @@ -212,6 +216,8 @@ if [ -e /tmp/bridge.info ]; then
> for ethname in $ethnames ; do
> if [ "$ethname" = "$bondname" ] ; then
> DO_BOND_SETUP=yes ifup $bondname -m
> + elif [ "$ethname" = "$teammaster" ] ; then
> + DO_TEAM_SETUP=yes ifup $teammaster -m
> else
> linkup $ethname
> fi
> @@ -235,6 +241,8 @@ if [ "$netif" = "$vlanname" ] && [ ! -e /tmp/net.$vlanname.up ]; then
> modprobe 8021q
> if [ "$phydevice" = "$bondname" ] ; then
> DO_BOND_SETUP=yes ifup $phydevice -m
> + elif [ "$phydevice" = "$teammaster" ] ; then
> + DO_TEAM_SETUP=yes ifup $phydevice -m
> else
> linkup "$phydevice"
> fi
>
Hi, Harald
Team is one of the supported network devices in our kdump. And bridge over
team and vlan tagged team is also required, while dracut is now lack of this
ability. I tested this patch myself and it really solves the problem.
Can you or anyone else help to review this patch?
(Actually, I've also got another patch to support bridge a vlan tagged
interface upon this one. I'll send that to ML once this patch is merged)
Thanks for your time.
WANG Chao
next prev parent reply other threads:[~2013-04-07 6:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-01 12:34 [PATCH] ifup.sh: Add support for bridge over team and vlan tagged team WANG Chao
[not found] ` <1364819680-1618-1-git-send-email-chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-04-07 6:47 ` WANG Chao [this message]
2013-04-07 9:20 ` Cong Wang
2013-04-07 9:32 ` WANG Chao
2013-04-09 8:53 ` Harald Hoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51611690.4000502@redhat.com \
--to=chaowang-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=jpirko-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox