From: David Miller <davem@davemloft.net>
To: cera@cera.cz
Cc: netdev@vger.kernel.org, sathya.perla@broadcom.com,
ajit.khaparde@broadcom.com, sriharsha.basavapatna@broadcom.com,
somnath.kotur@broadcom.com
Subject: Re: [PATCH net 3/3] be2net: fix MAC addr setting on privileged BE3 VFs
Date: Sun, 15 Jan 2017 23:50:10 -0500 (EST) [thread overview]
Message-ID: <20170115.235010.808547479902506292.davem@davemloft.net> (raw)
In-Reply-To: <20170113213829.22722-3-cera@cera.cz>
From: Ivan Vecera <cera@cera.cz>
Date: Fri, 13 Jan 2017 22:38:29 +0100
> During interface opening MAC address stored in netdev->dev_addr is
> programmed in the HW with exception of BE3 VFs where the initial
> MAC is programmed by parent PF. This is OK when MAC address is not
> changed when an interfaces is down. In this case the requested MAC is
> stored to netdev->dev_addr and later is stored into HW during opening.
> But this is not done for all BE3 VFs so the NIC HW does not know
> anything about this change and all traffic is filtered.
>
> This is the case of bonding if fail_over_mac == 0 where the MACs of
> the slaves are changed while they are down.
>
> The be2net behavior is too restrictive because if a BE3 VF has
> the FILTMGMT privilege then it is able to modify its MAC without
> any restriction.
>
> To solve the described problem the driver should take care about these
> privileged BE3 VFs so the MAC is programmed during opening. And by
> contrast unpriviled BE3 VFs should not be allowed to change its MAC
> in any case.
>
> Cc: Sathya Perla <sathya.perla@broadcom.com>
> Cc: Ajit Khaparde <ajit.khaparde@broadcom.com>
> Cc: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
> Cc: Somnath Kotur <somnath.kotur@broadcom.com>
> Signed-off-by: Ivan Vecera <cera@cera.cz>
Applied.
next prev parent reply other threads:[~2017-01-16 4:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-13 21:38 [PATCH net 1/3] be2net: fix status check in be_cmd_pmac_add() Ivan Vecera
2017-01-13 21:38 ` [PATCH net 2/3] be2net: don't delete MAC on close on unprivileged BE3 VFs Ivan Vecera
2017-01-16 4:50 ` David Miller
2017-01-13 21:38 ` [PATCH net 3/3] be2net: fix MAC addr setting on privileged " Ivan Vecera
2017-01-16 4:50 ` David Miller [this message]
2017-01-16 4:49 ` [PATCH net 1/3] be2net: fix status check in be_cmd_pmac_add() David Miller
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=20170115.235010.808547479902506292.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=ajit.khaparde@broadcom.com \
--cc=cera@cera.cz \
--cc=netdev@vger.kernel.org \
--cc=sathya.perla@broadcom.com \
--cc=somnath.kotur@broadcom.com \
--cc=sriharsha.basavapatna@broadcom.com \
/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;
as well as URLs for NNTP newsgroup(s).