aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h
diff options
context:
space:
mode:
authorAnish Bhatt <anish@chelsio.com>2015-02-18 15:29:45 -0800
committerDavid S. Miller <davem@davemloft.net>2015-02-20 17:25:52 -0500
commit5a8eeec468f229558322926f28c61bb0769793e9 (patch)
tree139ec1c0f2383dd6aa4a07366ede5bd85463e324 /drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h
parentethtool: Add hw-switch-offload to netdev_features_strings. (diff)
downloadlinux-dev-5a8eeec468f229558322926f28c61bb0769793e9.tar.xz
linux-dev-5a8eeec468f229558322926f28c61bb0769793e9.zip
cxgb4: Fix incorrect 'c' suffix to %pI4, use %pISc instead
Issue caught by 0-day kernel test infrastructure. Code changed to use sockaddr members so that %pISc can be used instead. Fixes: b5a02f503caa ('cxgb4 : Update ipv6 address handling api') Signed-off-by: Anish Bhatt <anish@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h b/drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h
index 2eaba0161cf8..35eb43c6bcbb 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h
+++ b/drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h
@@ -14,8 +14,10 @@ struct clip_entry {
spinlock_t lock; /* Hold while modifying clip reference */
atomic_t refcnt;
struct list_head list;
- u32 addr[4];
- int addr_len;
+ union {
+ struct sockaddr_in addr;
+ struct sockaddr_in6 addr6;
+ };
};
struct clip_tbl {