From: John Fastabend <john.r.fastabend@intel.com>
To: Yoann Juet <veilletechno-irts@univ-nantes.fr>,
John Fastabend <john.fastabend@gmail.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
Yoann Juet <yoann.juet@univ-nantes.fr>
Subject: Re: ixgbe: SR-IOV, macvlan filter on VFs
Date: Thu, 14 Aug 2014 08:39:23 -0700 [thread overview]
Message-ID: <53ECD82B.6080209@intel.com> (raw)
In-Reply-To: <53ECD560.4000700@univ-nantes.fr>
On 08/14/2014 08:27 AM, Yoann Juet wrote:
>> hmm this should work I think.
>>
>> Did you set the VF mac address at some point with,
>>
>> ip link set dev DEVICE vf NUM mac ADDR
>>
>> If not this how did you setup the virtual functions? Manually via
>> sriov_numvfs? Or via libvirt or other library.
>
> I'm using libvirt with interface type 'network' or 'hostdev'. The mac
> address is optional within this configuration block. But, If omitted,
> it's automatically generated. Even if I could set the mac address via
> the 'ip link' command (not very practical with libvirt but possible),
> Keepalived still needs two mac addresses per VF. From the guest
> perspective:
> - ethX: @mac1, @ip1
> - macvlanX<->ethX: @mac2 (vmac), @ip2 (vip)
>
> Correct me if I'm wrong, the command 'ip link set dev DEVICE vf NUM mac ADDR' can only set one mac per VF.
>
Right this seems to be the case. My guess is libvirt uses the IFLA_VF_MAC
attribute to set the MAC from the host side. After this is done the PF
driver will deny any additional MAC requests from the VF which is where
you get that error message.
I need to check the libvirt theory but if that is the case I'm not sure
what the best fix off hand is. Maybe an option to libvirt not to set the
MAC via the PF. The other option would be to add another knob to allow the
setting of MAC addrs from the VF via 'ip link' similar to the TX spoofing
bit already in place. Both would presumably resolve your use case.
.John
next prev parent reply other threads:[~2014-08-14 15:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-14 12:04 ixgbe: SR-IOV, macvlan filter on VFs Yoann Juet
2014-08-14 14:47 ` John Fastabend
2014-08-14 15:27 ` Yoann Juet
2014-08-14 15:39 ` John Fastabend [this message]
2014-08-14 15:56 ` Yoann Juet
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=53ECD82B.6080209@intel.com \
--to=john.r.fastabend@intel.com \
--cc=john.fastabend@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=veilletechno-irts@univ-nantes.fr \
--cc=yoann.juet@univ-nantes.fr \
/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).