diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-07-26 16:07:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-27 13:55:19 -0400 |
commit | 6598b169b856793f8f9b80a3f3c5a48f5eaf40e3 (patch) | |
tree | 94ac7225b638d8bea654e1acc7eb3df1fe6f052c /drivers/net/netxen/netxen_nic.h | |
parent | 68b3cae0824b98d1f469a80cc65dcaab81771f45 (diff) |
netxen: enable ip addr hashing
NX3031 hardware requires local IP addresses for packet
accumulation (LRO). IP address hashing is required to
distinguish a local TCP flow from others (forwarded or
guest).
This patch adds listener for IP and netdev events and
configures IP address in the firmware.
Signed-off-by: Amit Kumar Salecha <amit@netxen.com>
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic.h')
-rw-r--r-- | drivers/net/netxen/netxen_nic.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h index f86e05047d19..6b9e759d3523 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h | |||
@@ -380,6 +380,7 @@ struct rcv_desc { | |||
380 | }; | 380 | }; |
381 | 381 | ||
382 | /* opcode field in status_desc */ | 382 | /* opcode field in status_desc */ |
383 | #define NETXEN_NIC_SYN_OFFLOAD 0x03 | ||
383 | #define NETXEN_NIC_RXPKT_DESC 0x04 | 384 | #define NETXEN_NIC_RXPKT_DESC 0x04 |
384 | #define NETXEN_OLD_RXPKT_DESC 0x3f | 385 | #define NETXEN_OLD_RXPKT_DESC 0x3f |
385 | #define NETXEN_NIC_RESPONSE_DESC 0x05 | 386 | #define NETXEN_NIC_RESPONSE_DESC 0x05 |
@@ -1078,6 +1079,9 @@ typedef struct { | |||
1078 | 1079 | ||
1079 | #define NX_MAC_EVENT 0x1 | 1080 | #define NX_MAC_EVENT 0x1 |
1080 | 1081 | ||
1082 | #define NX_IP_UP 2 | ||
1083 | #define NX_IP_DOWN 3 | ||
1084 | |||
1081 | /* | 1085 | /* |
1082 | * Driver --> Firmware | 1086 | * Driver --> Firmware |
1083 | */ | 1087 | */ |
@@ -1443,6 +1447,7 @@ void netxen_p3_free_mac_list(struct netxen_adapter *adapter); | |||
1443 | int netxen_p3_nic_set_promisc(struct netxen_adapter *adapter, u32); | 1447 | int netxen_p3_nic_set_promisc(struct netxen_adapter *adapter, u32); |
1444 | int netxen_config_intr_coalesce(struct netxen_adapter *adapter); | 1448 | int netxen_config_intr_coalesce(struct netxen_adapter *adapter); |
1445 | int netxen_config_rss(struct netxen_adapter *adapter, int enable); | 1449 | int netxen_config_rss(struct netxen_adapter *adapter, int enable); |
1450 | int netxen_config_ipaddr(struct netxen_adapter *adapter, u32 ip, int cmd); | ||
1446 | int netxen_linkevent_request(struct netxen_adapter *adapter, int enable); | 1451 | int netxen_linkevent_request(struct netxen_adapter *adapter, int enable); |
1447 | void netxen_advert_link_change(struct netxen_adapter *adapter, int linkup); | 1452 | void netxen_advert_link_change(struct netxen_adapter *adapter, int linkup); |
1448 | 1453 | ||