diff options
author | Rajesh Borundia <rajesh.borundia@qlogic.com> | 2013-04-19 03:01:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-19 16:02:38 -0400 |
commit | f80bc8fe6d44f1f0ebd90d4e698189c5b9ad25e7 (patch) | |
tree | 86dcd2979cc10947bf58a794e8380b37bb496abc /drivers/net | |
parent | 42bbcb780307d85e6585971242f32bd4f6401c99 (diff) |
qlcnic: Change 82xx adapter VLAN id endian type.
o 82xx adapter requires VLAN id in little endian format.
Instead of passing vlan id parameter as __le16, pass the
parameter as u16 and use cpu_to_le16 at appropriate places.
Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic.h | 13 | ||||
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c | 6 | ||||
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.h | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c | 20 | ||||
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c | 4 |
7 files changed, 25 insertions, 30 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h b/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h index ef55718d06ba..43311ffdf361 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h | |||
@@ -939,7 +939,7 @@ struct qlcnic_ipaddr { | |||
939 | struct qlcnic_filter { | 939 | struct qlcnic_filter { |
940 | struct hlist_node fnode; | 940 | struct hlist_node fnode; |
941 | u8 faddr[ETH_ALEN]; | 941 | u8 faddr[ETH_ALEN]; |
942 | __le16 vlan_id; | 942 | u16 vlan_id; |
943 | unsigned long ftime; | 943 | unsigned long ftime; |
944 | }; | 944 | }; |
945 | 945 | ||
@@ -1524,8 +1524,7 @@ int qlcnic_init_pci_info(struct qlcnic_adapter *); | |||
1524 | int qlcnic_set_default_offload_settings(struct qlcnic_adapter *); | 1524 | int qlcnic_set_default_offload_settings(struct qlcnic_adapter *); |
1525 | int qlcnic_reset_npar_config(struct qlcnic_adapter *); | 1525 | int qlcnic_reset_npar_config(struct qlcnic_adapter *); |
1526 | int qlcnic_set_eswitch_port_config(struct qlcnic_adapter *); | 1526 | int qlcnic_set_eswitch_port_config(struct qlcnic_adapter *); |
1527 | void qlcnic_add_lb_filter(struct qlcnic_adapter *, struct sk_buff *, int, | 1527 | void qlcnic_add_lb_filter(struct qlcnic_adapter *, struct sk_buff *, int, u16); |
1528 | __le16); | ||
1529 | int qlcnic_83xx_configure_opmode(struct qlcnic_adapter *adapter); | 1528 | int qlcnic_83xx_configure_opmode(struct qlcnic_adapter *adapter); |
1530 | int qlcnic_read_mac_addr(struct qlcnic_adapter *); | 1529 | int qlcnic_read_mac_addr(struct qlcnic_adapter *); |
1531 | int qlcnic_setup_netdev(struct qlcnic_adapter *, struct net_device *, int); | 1530 | int qlcnic_setup_netdev(struct qlcnic_adapter *, struct net_device *, int); |
@@ -1595,7 +1594,7 @@ struct qlcnic_hardware_ops { | |||
1595 | int (*get_nic_info) (struct qlcnic_adapter *, struct qlcnic_info *, u8); | 1594 | int (*get_nic_info) (struct qlcnic_adapter *, struct qlcnic_info *, u8); |
1596 | int (*get_pci_info) (struct qlcnic_adapter *, struct qlcnic_pci_info *); | 1595 | int (*get_pci_info) (struct qlcnic_adapter *, struct qlcnic_pci_info *); |
1597 | int (*set_nic_info) (struct qlcnic_adapter *, struct qlcnic_info *); | 1596 | int (*set_nic_info) (struct qlcnic_adapter *, struct qlcnic_info *); |
1598 | int (*change_macvlan) (struct qlcnic_adapter *, u8*, __le16, u8); | 1597 | int (*change_macvlan) (struct qlcnic_adapter *, u8*, u16, u8); |
1599 | void (*napi_enable) (struct qlcnic_adapter *); | 1598 | void (*napi_enable) (struct qlcnic_adapter *); |
1600 | void (*napi_disable) (struct qlcnic_adapter *); | 1599 | void (*napi_disable) (struct qlcnic_adapter *); |
1601 | void (*config_intr_coal) (struct qlcnic_adapter *); | 1600 | void (*config_intr_coal) (struct qlcnic_adapter *); |
@@ -1604,7 +1603,7 @@ struct qlcnic_hardware_ops { | |||
1604 | int (*config_loopback) (struct qlcnic_adapter *, u8); | 1603 | int (*config_loopback) (struct qlcnic_adapter *, u8); |
1605 | int (*clear_loopback) (struct qlcnic_adapter *, u8); | 1604 | int (*clear_loopback) (struct qlcnic_adapter *, u8); |
1606 | int (*config_promisc_mode) (struct qlcnic_adapter *, u32); | 1605 | int (*config_promisc_mode) (struct qlcnic_adapter *, u32); |
1607 | void (*change_l2_filter) (struct qlcnic_adapter *, u64 *, __le16); | 1606 | void (*change_l2_filter) (struct qlcnic_adapter *, u64 *, u16); |
1608 | int (*get_board_info) (struct qlcnic_adapter *); | 1607 | int (*get_board_info) (struct qlcnic_adapter *); |
1609 | }; | 1608 | }; |
1610 | 1609 | ||
@@ -1746,7 +1745,7 @@ static inline int qlcnic_set_nic_info(struct qlcnic_adapter *adapter, | |||
1746 | } | 1745 | } |
1747 | 1746 | ||
1748 | static inline int qlcnic_sre_macaddr_change(struct qlcnic_adapter *adapter, | 1747 | static inline int qlcnic_sre_macaddr_change(struct qlcnic_adapter *adapter, |
1749 | u8 *addr, __le16 id, u8 cmd) | 1748 | u8 *addr, u16 id, u8 cmd) |
1750 | { | 1749 | { |
1751 | return adapter->ahw->hw_ops->change_macvlan(adapter, addr, id, cmd); | 1750 | return adapter->ahw->hw_ops->change_macvlan(adapter, addr, id, cmd); |
1752 | } | 1751 | } |
@@ -1805,7 +1804,7 @@ static inline int qlcnic_nic_set_promisc(struct qlcnic_adapter *adapter, | |||
1805 | } | 1804 | } |
1806 | 1805 | ||
1807 | static inline void qlcnic_change_filter(struct qlcnic_adapter *adapter, | 1806 | static inline void qlcnic_change_filter(struct qlcnic_adapter *adapter, |
1808 | u64 *addr, __le16 id) | 1807 | u64 *addr, u16 id) |
1809 | { | 1808 | { |
1810 | adapter->ahw->hw_ops->change_l2_filter(adapter, addr, id); | 1809 | adapter->ahw->hw_ops->change_l2_filter(adapter, addr, id); |
1811 | } | 1810 | } |
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c index 374fa8a3791b..2f4691cbd7d1 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c | |||
@@ -1784,7 +1784,7 @@ static void qlcnic_83xx_set_interface_id_macaddr(struct qlcnic_adapter *adapter, | |||
1784 | } | 1784 | } |
1785 | 1785 | ||
1786 | int qlcnic_83xx_sre_macaddr_change(struct qlcnic_adapter *adapter, u8 *addr, | 1786 | int qlcnic_83xx_sre_macaddr_change(struct qlcnic_adapter *adapter, u8 *addr, |
1787 | __le16 vlan_id, u8 op) | 1787 | u16 vlan_id, u8 op) |
1788 | { | 1788 | { |
1789 | int err; | 1789 | int err; |
1790 | u32 *buf, temp = 0; | 1790 | u32 *buf, temp = 0; |
@@ -1801,7 +1801,7 @@ int qlcnic_83xx_sre_macaddr_change(struct qlcnic_adapter *adapter, u8 *addr, | |||
1801 | cmd.req.arg[1] = op | (1 << 8); | 1801 | cmd.req.arg[1] = op | (1 << 8); |
1802 | qlcnic_83xx_set_interface_id_macaddr(adapter, &temp); | 1802 | qlcnic_83xx_set_interface_id_macaddr(adapter, &temp); |
1803 | cmd.req.arg[1] |= temp; | 1803 | cmd.req.arg[1] |= temp; |
1804 | mv.vlan = le16_to_cpu(vlan_id); | 1804 | mv.vlan = vlan_id; |
1805 | mv.mac_addr0 = addr[0]; | 1805 | mv.mac_addr0 = addr[0]; |
1806 | mv.mac_addr1 = addr[1]; | 1806 | mv.mac_addr1 = addr[1]; |
1807 | mv.mac_addr2 = addr[2]; | 1807 | mv.mac_addr2 = addr[2]; |
@@ -1820,7 +1820,7 @@ int qlcnic_83xx_sre_macaddr_change(struct qlcnic_adapter *adapter, u8 *addr, | |||
1820 | } | 1820 | } |
1821 | 1821 | ||
1822 | void qlcnic_83xx_change_l2_filter(struct qlcnic_adapter *adapter, u64 *addr, | 1822 | void qlcnic_83xx_change_l2_filter(struct qlcnic_adapter *adapter, u64 *addr, |
1823 | __le16 vlan_id) | 1823 | u16 vlan_id) |
1824 | { | 1824 | { |
1825 | u8 mac[ETH_ALEN]; | 1825 | u8 mac[ETH_ALEN]; |
1826 | memcpy(&mac, addr, ETH_ALEN); | 1826 | memcpy(&mac, addr, ETH_ALEN); |
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h index 32ed4b4c4976..7e201cd617ea 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h | |||
@@ -501,7 +501,7 @@ int qlcnic_83xx_clear_lb_mode(struct qlcnic_adapter *, u8); | |||
501 | int qlcnic_83xx_config_hw_lro(struct qlcnic_adapter *, int); | 501 | int qlcnic_83xx_config_hw_lro(struct qlcnic_adapter *, int); |
502 | int qlcnic_83xx_config_rss(struct qlcnic_adapter *, int); | 502 | int qlcnic_83xx_config_rss(struct qlcnic_adapter *, int); |
503 | int qlcnic_83xx_config_intr_coalesce(struct qlcnic_adapter *); | 503 | int qlcnic_83xx_config_intr_coalesce(struct qlcnic_adapter *); |
504 | void qlcnic_83xx_change_l2_filter(struct qlcnic_adapter *, u64 *, __le16); | 504 | void qlcnic_83xx_change_l2_filter(struct qlcnic_adapter *, u64 *, u16); |
505 | int qlcnic_83xx_get_pci_info(struct qlcnic_adapter *, struct qlcnic_pci_info *); | 505 | int qlcnic_83xx_get_pci_info(struct qlcnic_adapter *, struct qlcnic_pci_info *); |
506 | int qlcnic_83xx_set_nic_info(struct qlcnic_adapter *, struct qlcnic_info *); | 506 | int qlcnic_83xx_set_nic_info(struct qlcnic_adapter *, struct qlcnic_info *); |
507 | void qlcnic_83xx_register_nic_idc_func(struct qlcnic_adapter *, int); | 507 | void qlcnic_83xx_register_nic_idc_func(struct qlcnic_adapter *, int); |
@@ -523,7 +523,7 @@ int qlcnic_83xx_get_nic_info(struct qlcnic_adapter *, struct qlcnic_info *, u8); | |||
523 | int qlcnic_83xx_setup_link_event(struct qlcnic_adapter *, int); | 523 | int qlcnic_83xx_setup_link_event(struct qlcnic_adapter *, int); |
524 | void qlcnic_83xx_process_rcv_ring_diag(struct qlcnic_host_sds_ring *); | 524 | void qlcnic_83xx_process_rcv_ring_diag(struct qlcnic_host_sds_ring *); |
525 | int qlcnic_83xx_config_intrpt(struct qlcnic_adapter *, bool); | 525 | int qlcnic_83xx_config_intrpt(struct qlcnic_adapter *, bool); |
526 | int qlcnic_83xx_sre_macaddr_change(struct qlcnic_adapter *, u8 *, __le16, u8); | 526 | int qlcnic_83xx_sre_macaddr_change(struct qlcnic_adapter *, u8 *, u16, u8); |
527 | int qlcnic_83xx_get_mac_address(struct qlcnic_adapter *, u8 *); | 527 | int qlcnic_83xx_get_mac_address(struct qlcnic_adapter *, u8 *); |
528 | void qlcnic_83xx_configure_mac(struct qlcnic_adapter *, u8 *, u8, | 528 | void qlcnic_83xx_configure_mac(struct qlcnic_adapter *, u8 *, u8, |
529 | struct qlcnic_cmd_args *); | 529 | struct qlcnic_cmd_args *); |
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c index 253b3ac16046..c3cbfaea97c3 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c | |||
@@ -423,7 +423,7 @@ qlcnic_send_cmd_descs(struct qlcnic_adapter *adapter, | |||
423 | } | 423 | } |
424 | 424 | ||
425 | int qlcnic_82xx_sre_macaddr_change(struct qlcnic_adapter *adapter, u8 *addr, | 425 | int qlcnic_82xx_sre_macaddr_change(struct qlcnic_adapter *adapter, u8 *addr, |
426 | __le16 vlan_id, u8 op) | 426 | u16 vlan_id, u8 op) |
427 | { | 427 | { |
428 | struct qlcnic_nic_req req; | 428 | struct qlcnic_nic_req req; |
429 | struct qlcnic_mac_req *mac_req; | 429 | struct qlcnic_mac_req *mac_req; |
@@ -441,7 +441,7 @@ int qlcnic_82xx_sre_macaddr_change(struct qlcnic_adapter *adapter, u8 *addr, | |||
441 | memcpy(mac_req->mac_addr, addr, 6); | 441 | memcpy(mac_req->mac_addr, addr, 6); |
442 | 442 | ||
443 | vlan_req = (struct qlcnic_vlan_req *)&req.words[1]; | 443 | vlan_req = (struct qlcnic_vlan_req *)&req.words[1]; |
444 | vlan_req->vlan_id = vlan_id; | 444 | vlan_req->vlan_id = cpu_to_le16(vlan_id); |
445 | 445 | ||
446 | return qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); | 446 | return qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); |
447 | } | 447 | } |
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.h b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.h index e862a77a626b..95b1b5732838 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.h +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.h | |||
@@ -159,7 +159,7 @@ int qlcnic_82xx_nic_set_promisc(struct qlcnic_adapter *adapter, u32); | |||
159 | int qlcnic_82xx_napi_add(struct qlcnic_adapter *adapter, | 159 | int qlcnic_82xx_napi_add(struct qlcnic_adapter *adapter, |
160 | struct net_device *netdev); | 160 | struct net_device *netdev); |
161 | void qlcnic_82xx_change_filter(struct qlcnic_adapter *adapter, | 161 | void qlcnic_82xx_change_filter(struct qlcnic_adapter *adapter, |
162 | u64 *uaddr, __le16 vlan_id); | 162 | u64 *uaddr, u16 vlan_id); |
163 | void qlcnic_82xx_config_intr_coalesce(struct qlcnic_adapter *adapter); | 163 | void qlcnic_82xx_config_intr_coalesce(struct qlcnic_adapter *adapter); |
164 | int qlcnic_82xx_config_rss(struct qlcnic_adapter *adapter, int); | 164 | int qlcnic_82xx_config_rss(struct qlcnic_adapter *adapter, int); |
165 | void qlcnic_82xx_config_ipaddr(struct qlcnic_adapter *adapter, | 165 | void qlcnic_82xx_config_ipaddr(struct qlcnic_adapter *adapter, |
@@ -181,7 +181,7 @@ int qlcnic_82xx_fw_cmd_create_tx_ctx(struct qlcnic_adapter *, | |||
181 | void qlcnic_82xx_fw_cmd_del_rx_ctx(struct qlcnic_adapter *); | 181 | void qlcnic_82xx_fw_cmd_del_rx_ctx(struct qlcnic_adapter *); |
182 | void qlcnic_82xx_fw_cmd_del_tx_ctx(struct qlcnic_adapter *, | 182 | void qlcnic_82xx_fw_cmd_del_tx_ctx(struct qlcnic_adapter *, |
183 | struct qlcnic_host_tx_ring *); | 183 | struct qlcnic_host_tx_ring *); |
184 | int qlcnic_82xx_sre_macaddr_change(struct qlcnic_adapter *, u8 *, __le16, u8); | 184 | int qlcnic_82xx_sre_macaddr_change(struct qlcnic_adapter *, u8 *, u16, u8); |
185 | int qlcnic_82xx_get_mac_address(struct qlcnic_adapter *, u8*); | 185 | int qlcnic_82xx_get_mac_address(struct qlcnic_adapter *, u8*); |
186 | int qlcnic_82xx_get_nic_info(struct qlcnic_adapter *, struct qlcnic_info *, u8); | 186 | int qlcnic_82xx_get_nic_info(struct qlcnic_adapter *, struct qlcnic_info *, u8); |
187 | int qlcnic_82xx_set_nic_info(struct qlcnic_adapter *, struct qlcnic_info *); | 187 | int qlcnic_82xx_set_nic_info(struct qlcnic_adapter *, struct qlcnic_info *); |
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c index 56223a6aa408..f3fe31e8f6bd 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c | |||
@@ -162,7 +162,7 @@ static inline int qlcnic_82xx_is_lb_pkt(u64 sts_data) | |||
162 | } | 162 | } |
163 | 163 | ||
164 | void qlcnic_add_lb_filter(struct qlcnic_adapter *adapter, struct sk_buff *skb, | 164 | void qlcnic_add_lb_filter(struct qlcnic_adapter *adapter, struct sk_buff *skb, |
165 | int loopback_pkt, __le16 vlan_id) | 165 | int loopback_pkt, u16 vlan_id) |
166 | { | 166 | { |
167 | struct ethhdr *phdr = (struct ethhdr *)(skb->data); | 167 | struct ethhdr *phdr = (struct ethhdr *)(skb->data); |
168 | struct qlcnic_filter *fil, *tmp_fil; | 168 | struct qlcnic_filter *fil, *tmp_fil; |
@@ -240,7 +240,7 @@ void qlcnic_add_lb_filter(struct qlcnic_adapter *adapter, struct sk_buff *skb, | |||
240 | } | 240 | } |
241 | 241 | ||
242 | void qlcnic_82xx_change_filter(struct qlcnic_adapter *adapter, u64 *uaddr, | 242 | void qlcnic_82xx_change_filter(struct qlcnic_adapter *adapter, u64 *uaddr, |
243 | __le16 vlan_id) | 243 | u16 vlan_id) |
244 | { | 244 | { |
245 | struct cmd_desc_type0 *hwdesc; | 245 | struct cmd_desc_type0 *hwdesc; |
246 | struct qlcnic_nic_req *req; | 246 | struct qlcnic_nic_req *req; |
@@ -265,7 +265,7 @@ void qlcnic_82xx_change_filter(struct qlcnic_adapter *adapter, u64 *uaddr, | |||
265 | memcpy(mac_req->mac_addr, &uaddr, ETH_ALEN); | 265 | memcpy(mac_req->mac_addr, &uaddr, ETH_ALEN); |
266 | 266 | ||
267 | vlan_req = (struct qlcnic_vlan_req *)&req->words[1]; | 267 | vlan_req = (struct qlcnic_vlan_req *)&req->words[1]; |
268 | vlan_req->vlan_id = vlan_id; | 268 | vlan_req->vlan_id = cpu_to_le16(vlan_id); |
269 | 269 | ||
270 | tx_ring->producer = get_next_index(producer, tx_ring->num_desc); | 270 | tx_ring->producer = get_next_index(producer, tx_ring->num_desc); |
271 | smp_mb(); | 271 | smp_mb(); |
@@ -281,7 +281,7 @@ static void qlcnic_send_filter(struct qlcnic_adapter *adapter, | |||
281 | struct net_device *netdev = adapter->netdev; | 281 | struct net_device *netdev = adapter->netdev; |
282 | struct ethhdr *phdr = (struct ethhdr *)(skb->data); | 282 | struct ethhdr *phdr = (struct ethhdr *)(skb->data); |
283 | u64 src_addr = 0; | 283 | u64 src_addr = 0; |
284 | __le16 vlan_id = 0; | 284 | u16 vlan_id = 0; |
285 | u8 hindex; | 285 | u8 hindex; |
286 | 286 | ||
287 | if (ether_addr_equal(phdr->h_source, adapter->mac_addr)) | 287 | if (ether_addr_equal(phdr->h_source, adapter->mac_addr)) |
@@ -1029,8 +1029,7 @@ qlcnic_process_rcv(struct qlcnic_adapter *adapter, | |||
1029 | (adapter->flags & QLCNIC_ESWITCH_ENABLED)) { | 1029 | (adapter->flags & QLCNIC_ESWITCH_ENABLED)) { |
1030 | t_vid = 0; | 1030 | t_vid = 0; |
1031 | is_lb_pkt = qlcnic_82xx_is_lb_pkt(sts_data0); | 1031 | is_lb_pkt = qlcnic_82xx_is_lb_pkt(sts_data0); |
1032 | qlcnic_add_lb_filter(adapter, skb, is_lb_pkt, | 1032 | qlcnic_add_lb_filter(adapter, skb, is_lb_pkt, t_vid); |
1033 | cpu_to_le16(t_vid)); | ||
1034 | } | 1033 | } |
1035 | 1034 | ||
1036 | if (length > rds_ring->skb_size) | 1035 | if (length > rds_ring->skb_size) |
@@ -1107,8 +1106,7 @@ qlcnic_process_lro(struct qlcnic_adapter *adapter, | |||
1107 | (adapter->flags & QLCNIC_ESWITCH_ENABLED)) { | 1106 | (adapter->flags & QLCNIC_ESWITCH_ENABLED)) { |
1108 | t_vid = 0; | 1107 | t_vid = 0; |
1109 | is_lb_pkt = qlcnic_82xx_is_lb_pkt(sts_data0); | 1108 | is_lb_pkt = qlcnic_82xx_is_lb_pkt(sts_data0); |
1110 | qlcnic_add_lb_filter(adapter, skb, is_lb_pkt, | 1109 | qlcnic_add_lb_filter(adapter, skb, is_lb_pkt, t_vid); |
1111 | cpu_to_le16(t_vid)); | ||
1112 | } | 1110 | } |
1113 | 1111 | ||
1114 | if (timestamp) | 1112 | if (timestamp) |
@@ -1500,8 +1498,7 @@ qlcnic_83xx_process_rcv(struct qlcnic_adapter *adapter, | |||
1500 | (adapter->flags & QLCNIC_ESWITCH_ENABLED)) { | 1498 | (adapter->flags & QLCNIC_ESWITCH_ENABLED)) { |
1501 | t_vid = 0; | 1499 | t_vid = 0; |
1502 | is_lb_pkt = qlcnic_83xx_is_lb_pkt(sts_data[1], 0); | 1500 | is_lb_pkt = qlcnic_83xx_is_lb_pkt(sts_data[1], 0); |
1503 | qlcnic_add_lb_filter(adapter, skb, is_lb_pkt, | 1501 | qlcnic_add_lb_filter(adapter, skb, is_lb_pkt, t_vid); |
1504 | cpu_to_le16(t_vid)); | ||
1505 | } | 1502 | } |
1506 | 1503 | ||
1507 | if (length > rds_ring->skb_size) | 1504 | if (length > rds_ring->skb_size) |
@@ -1570,8 +1567,7 @@ qlcnic_83xx_process_lro(struct qlcnic_adapter *adapter, | |||
1570 | (adapter->flags & QLCNIC_ESWITCH_ENABLED)) { | 1567 | (adapter->flags & QLCNIC_ESWITCH_ENABLED)) { |
1571 | t_vid = 0; | 1568 | t_vid = 0; |
1572 | is_lb_pkt = qlcnic_83xx_is_lb_pkt(sts_data[1], 1); | 1569 | is_lb_pkt = qlcnic_83xx_is_lb_pkt(sts_data[1], 1); |
1573 | qlcnic_add_lb_filter(adapter, skb, is_lb_pkt, | 1570 | qlcnic_add_lb_filter(adapter, skb, is_lb_pkt, t_vid); |
1574 | cpu_to_le16(t_vid)); | ||
1575 | } | 1571 | } |
1576 | if (qlcnic_83xx_is_tstamp(sts_data[1])) | 1572 | if (qlcnic_83xx_is_tstamp(sts_data[1])) |
1577 | data_offset = l4_hdr_offset + QLCNIC_TCP_TS_HDR_SIZE; | 1573 | data_offset = l4_hdr_offset + QLCNIC_TCP_TS_HDR_SIZE; |
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c index bed505606a2d..3a86e1682456 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c | |||
@@ -548,7 +548,7 @@ err_out: | |||
548 | 548 | ||
549 | static int qlcnic_sriov_cfg_vf_def_mac(struct qlcnic_adapter *adapter, | 549 | static int qlcnic_sriov_cfg_vf_def_mac(struct qlcnic_adapter *adapter, |
550 | struct qlcnic_vport *vp, | 550 | struct qlcnic_vport *vp, |
551 | u16 func, __le16 vlan, u8 op) | 551 | u16 func, u16 vlan, u8 op) |
552 | { | 552 | { |
553 | struct qlcnic_cmd_args cmd; | 553 | struct qlcnic_cmd_args cmd; |
554 | struct qlcnic_macvlan_mbx mv; | 554 | struct qlcnic_macvlan_mbx mv; |
@@ -574,7 +574,7 @@ static int qlcnic_sriov_cfg_vf_def_mac(struct qlcnic_adapter *adapter, | |||
574 | cmd.req.arg[1] |= ((vpid & 0xffff) << 16) | BIT_31; | 574 | cmd.req.arg[1] |= ((vpid & 0xffff) << 16) | BIT_31; |
575 | 575 | ||
576 | addr = vp->mac; | 576 | addr = vp->mac; |
577 | mv.vlan = le16_to_cpu(vlan); | 577 | mv.vlan = vlan; |
578 | mv.mac_addr0 = addr[0]; | 578 | mv.mac_addr0 = addr[0]; |
579 | mv.mac_addr1 = addr[1]; | 579 | mv.mac_addr1 = addr[1]; |
580 | mv.mac_addr2 = addr[2]; | 580 | mv.mac_addr2 = addr[2]; |