]> git.baikalelectronics.ru Git - kernel.git/commit
enic: bug fix: make the set/get netlink VF_PORT support symmetrical
authorScott Feldman <scofeldm@cisco.com>
Tue, 1 Jun 2010 08:59:33 +0000 (08:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2010 09:26:40 +0000 (02:26 -0700)
commit50c78e107175cf2dfa10bc8bd121f3b641da9f30
tree2486b90342f17a8f5a1bf8feb1a219143b83da48
parent7aceef3890cef825259c972805de54b3ae61690b
enic: bug fix: make the set/get netlink VF_PORT support symmetrical

To make get/set netlink VF_PORT truly symmetrical, we need to keep track
of what items are set and only return those items on get.  Previously, the
driver wasn't differentiating between a set of attr with a NULL string,
for example, and not setting the attr at all.  We only want to return
the NULL string if the attr was actually set with a NULL string.  Otherwise,
don't return the attr.

Signed-off-by: Scott Feldman <scofeldm@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/enic/enic.h
drivers/net/enic/enic_main.c