summaryrefslogtreecommitdiff
path: root/drivers/net/enic/enic.h
diff options
context:
space:
mode:
authorScott Feldman <scofeldm@cisco.com>2010-06-01 08:59:33 +0000
committerDavid S. Miller <davem@davemloft.net>2010-06-02 02:26:40 -0700
commit08f382ebb8a9efb898840aa74cf55148c7a98af6 (patch)
tree2486b90342f17a8f5a1bf8feb1a219143b83da48 /drivers/net/enic/enic.h
parentf048fa9c8686119c3858a463cab6121dced7c0bf (diff)
downloadlwn-08f382ebb8a9efb898840aa74cf55148c7a98af6.tar.gz
lwn-08f382ebb8a9efb898840aa74cf55148c7a98af6.zip
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>
Diffstat (limited to 'drivers/net/enic/enic.h')
-rw-r--r--drivers/net/enic/enic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/enic/enic.h b/drivers/net/enic/enic.h
index 85f2a2e7030a..45e86d1e5b1b 100644
--- a/drivers/net/enic/enic.h
+++ b/drivers/net/enic/enic.h
@@ -74,7 +74,14 @@ struct enic_msix_entry {
void *devid;
};
+#define ENIC_SET_APPLIED (1 << 0)
+#define ENIC_SET_REQUEST (1 << 1)
+#define ENIC_SET_NAME (1 << 2)
+#define ENIC_SET_INSTANCE (1 << 3)
+#define ENIC_SET_HOST (1 << 4)
+
struct enic_port_profile {
+ u32 set;
u8 request;
char name[PORT_PROFILE_MAX];
u8 instance_uuid[PORT_UUID_MAX];