diff options
author | Cong Wang <amwang@redhat.com> | 2013-01-07 15:52:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-08 20:56:09 -0500 |
commit | b7394d2429c198b1da3d46ac39192e891029ec0f (patch) | |
tree | b051c22f9ea4451604ec40786e9a377e58c830ea /include/linux/netpoll.h | |
parent | 0c7768a0985f281e71c0229c0531ccfc0d3dd1f9 (diff) |
netpoll: prepare for ipv6
This patch adjusts some struct and functions, to prepare
for supporting IPv6.
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netpoll.h')
-rw-r--r-- | include/linux/netpoll.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h index 66d5379c305e..f54c3bb6a22b 100644 --- a/include/linux/netpoll.h +++ b/include/linux/netpoll.h | |||
@@ -12,13 +12,22 @@ | |||
12 | #include <linux/rcupdate.h> | 12 | #include <linux/rcupdate.h> |
13 | #include <linux/list.h> | 13 | #include <linux/list.h> |
14 | 14 | ||
15 | union inet_addr { | ||
16 | __u32 all[4]; | ||
17 | __be32 ip; | ||
18 | __be32 ip6[4]; | ||
19 | struct in_addr in; | ||
20 | struct in6_addr in6; | ||
21 | }; | ||
22 | |||
15 | struct netpoll { | 23 | struct netpoll { |
16 | struct net_device *dev; | 24 | struct net_device *dev; |
17 | char dev_name[IFNAMSIZ]; | 25 | char dev_name[IFNAMSIZ]; |
18 | const char *name; | 26 | const char *name; |
19 | void (*rx_hook)(struct netpoll *, int, char *, int); | 27 | void (*rx_hook)(struct netpoll *, int, char *, int); |
20 | 28 | ||
21 | __be32 local_ip, remote_ip; | 29 | union inet_addr local_ip, remote_ip; |
30 | bool ipv6; | ||
22 | u16 local_port, remote_port; | 31 | u16 local_port, remote_port; |
23 | u8 remote_mac[ETH_ALEN]; | 32 | u8 remote_mac[ETH_ALEN]; |
24 | 33 | ||
@@ -33,7 +42,7 @@ struct netpoll_info { | |||
33 | spinlock_t rx_lock; | 42 | spinlock_t rx_lock; |
34 | struct list_head rx_np; /* netpolls that registered an rx_hook */ | 43 | struct list_head rx_np; /* netpolls that registered an rx_hook */ |
35 | 44 | ||
36 | struct sk_buff_head arp_tx; /* list of arp requests to reply to */ | 45 | struct sk_buff_head neigh_tx; /* list of neigh requests to reply to */ |
37 | struct sk_buff_head txq; | 46 | struct sk_buff_head txq; |
38 | 47 | ||
39 | struct delayed_work tx_work; | 48 | struct delayed_work tx_work; |