netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ajit Khaparde <ajit.khaparde@emulex.com>
To: <shemminger@linux-foundation.org>
Cc: <davem@davemloft.net>, <netdev@vger.kernel.org>
Subject: [iproute2 RFC v2 0/2] Add option to ip link to set VF privileges
Date: Tue, 14 Feb 2012 13:26:34 -0600	[thread overview]
Message-ID: <20120214192634.GA14320@akhaparde-VBox> (raw)

This patch adds ip link option to change the privilege level for the specified VF.

Example usage:-

If the current Privilege of the VF is 0x86:

To add VLAN privilege to the VF,
   ip link set ethX vf 0 privilege 0xC6

To add VLAN & MAC privilege to the VF,
   ip link set ethX vf 0 privilege 0xE6

To give just default privileges to the VF
   ip link set ethX vf 0 privilege 0x1

o/p of the *new* ip link show command:
ip link show eth2
9: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:00:c9:ef:7c:9a brd ff:ff:ff:ff:ff:ff
    vf 0 MAC 00:00:c9:f6:b0:4d, privilege 0x1

                 reply	other threads:[~2012-02-14 19:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20120214192634.GA14320@akhaparde-VBox \
    --to=ajit.khaparde@emulex.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@linux-foundation.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;
as well as URLs for NNTP newsgroup(s).