aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen/netxen_nic_hw.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/netxen/netxen_nic_hw.c')
-rw-r--r--drivers/net/netxen/netxen_nic_hw.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/net/netxen/netxen_nic_hw.c b/drivers/net/netxen/netxen_nic_hw.c
index 37d3ebd65be8..e42d26e03af5 100644
--- a/drivers/net/netxen/netxen_nic_hw.c
+++ b/drivers/net/netxen/netxen_nic_hw.c
@@ -655,7 +655,7 @@ nx_p3_sre_macaddr_change(struct netxen_adapter *adapter, u8 *addr, unsigned op)
655} 655}
656 656
657static int nx_p3_nic_add_mac(struct netxen_adapter *adapter, 657static int nx_p3_nic_add_mac(struct netxen_adapter *adapter,
658 u8 *addr, struct list_head *del_list) 658 const u8 *addr, struct list_head *del_list)
659{ 659{
660 struct list_head *head; 660 struct list_head *head;
661 nx_mac_list_t *cur; 661 nx_mac_list_t *cur;
@@ -686,7 +686,9 @@ static void netxen_p3_nic_set_multi(struct net_device *netdev)
686{ 686{
687 struct netxen_adapter *adapter = netdev_priv(netdev); 687 struct netxen_adapter *adapter = netdev_priv(netdev);
688 struct netdev_hw_addr *ha; 688 struct netdev_hw_addr *ha;
689 u8 bcast_addr[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; 689 static const u8 bcast_addr[ETH_ALEN] = {
690 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
691 };
690 u32 mode = VPORT_MISS_MODE_DROP; 692 u32 mode = VPORT_MISS_MODE_DROP;
691 LIST_HEAD(del_list); 693 LIST_HEAD(del_list);
692 struct list_head *head; 694 struct list_head *head;
@@ -869,9 +871,11 @@ int netxen_config_rss(struct netxen_adapter *adapter, int enable)
869 u64 word; 871 u64 word;
870 int i, rv; 872 int i, rv;
871 873
872 u64 key[] = { 0xbeac01fa6a42b73bULL, 0x8030f20c77cb2da3ULL, 874 static const u64 key[] = {
873 0xae7b30b4d0ca2bcbULL, 0x43a38fb04167253dULL, 875 0xbeac01fa6a42b73bULL, 0x8030f20c77cb2da3ULL,
874 0x255b0ec26d5a56daULL }; 876 0xae7b30b4d0ca2bcbULL, 0x43a38fb04167253dULL,
877 0x255b0ec26d5a56daULL
878 };
875 879
876 880
877 memset(&req, 0, sizeof(nx_nic_req_t)); 881 memset(&req, 0, sizeof(nx_nic_req_t));
@@ -895,7 +899,7 @@ int netxen_config_rss(struct netxen_adapter *adapter, int enable)
895 ((u64)(enable & 0x1) << 8) | 899 ((u64)(enable & 0x1) << 8) |
896 ((0x7ULL) << 48); 900 ((0x7ULL) << 48);
897 req.words[0] = cpu_to_le64(word); 901 req.words[0] = cpu_to_le64(word);
898 for (i = 0; i < 5; i++) 902 for (i = 0; i < ARRAY_SIZE(key); i++)
899 req.words[i+1] = cpu_to_le64(key[i]); 903 req.words[i+1] = cpu_to_le64(key[i]);
900 904
901 905