diff options
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index 05529e273050..a587c8aa27ed 100644 --- a/drivers/net/ethernet/emulex/benet/be.h +++ b/drivers/net/ethernet/emulex/benet/be.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2005 - 2013 Emulex | 2 | * Copyright (C) 2005 - 2014 Emulex |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
5 | * This program is free software; you can redistribute it and/or | 5 | * This program is free software; you can redistribute it and/or |
@@ -34,7 +34,7 @@ | |||
34 | #include "be_hw.h" | 34 | #include "be_hw.h" |
35 | #include "be_roce.h" | 35 | #include "be_roce.h" |
36 | 36 | ||
37 | #define DRV_VER "10.0.600.0u" | 37 | #define DRV_VER "10.2u" |
38 | #define DRV_NAME "be2net" | 38 | #define DRV_NAME "be2net" |
39 | #define BE_NAME "Emulex BladeEngine2" | 39 | #define BE_NAME "Emulex BladeEngine2" |
40 | #define BE3_NAME "Emulex BladeEngine3" | 40 | #define BE3_NAME "Emulex BladeEngine3" |
@@ -88,7 +88,6 @@ static inline char *nic_name(struct pci_dev *pdev) | |||
88 | #define BE_MIN_MTU 256 | 88 | #define BE_MIN_MTU 256 |
89 | 89 | ||
90 | #define BE_NUM_VLANS_SUPPORTED 64 | 90 | #define BE_NUM_VLANS_SUPPORTED 64 |
91 | #define BE_UMC_NUM_VLANS_SUPPORTED 15 | ||
92 | #define BE_MAX_EQD 128u | 91 | #define BE_MAX_EQD 128u |
93 | #define BE_MAX_TX_FRAG_COUNT 30 | 92 | #define BE_MAX_TX_FRAG_COUNT 30 |
94 | 93 | ||
@@ -262,9 +261,10 @@ struct be_tx_obj { | |||
262 | /* Struct to remember the pages posted for rx frags */ | 261 | /* Struct to remember the pages posted for rx frags */ |
263 | struct be_rx_page_info { | 262 | struct be_rx_page_info { |
264 | struct page *page; | 263 | struct page *page; |
264 | /* set to page-addr for last frag of the page & frag-addr otherwise */ | ||
265 | DEFINE_DMA_UNMAP_ADDR(bus); | 265 | DEFINE_DMA_UNMAP_ADDR(bus); |
266 | u16 page_offset; | 266 | u16 page_offset; |
267 | bool last_page_user; | 267 | bool last_frag; /* last frag of the page */ |
268 | }; | 268 | }; |
269 | 269 | ||
270 | struct be_rx_stats { | 270 | struct be_rx_stats { |
@@ -293,7 +293,7 @@ struct be_rx_compl_info { | |||
293 | u8 ip_csum; | 293 | u8 ip_csum; |
294 | u8 l4_csum; | 294 | u8 l4_csum; |
295 | u8 ipv6; | 295 | u8 ipv6; |
296 | u8 vtm; | 296 | u8 qnq; |
297 | u8 pkt_type; | 297 | u8 pkt_type; |
298 | u8 ip_frag; | 298 | u8 ip_frag; |
299 | }; | 299 | }; |
@@ -359,6 +359,7 @@ struct be_vf_cfg { | |||
359 | int pmac_id; | 359 | int pmac_id; |
360 | u16 vlan_tag; | 360 | u16 vlan_tag; |
361 | u32 tx_rate; | 361 | u32 tx_rate; |
362 | u32 plink_tracking; | ||
362 | }; | 363 | }; |
363 | 364 | ||
364 | enum vf_state { | 365 | enum vf_state { |
@@ -467,6 +468,7 @@ struct be_adapter { | |||
467 | 468 | ||
468 | u32 port_num; | 469 | u32 port_num; |
469 | bool promiscuous; | 470 | bool promiscuous; |
471 | u8 mc_type; | ||
470 | u32 function_mode; | 472 | u32 function_mode; |
471 | u32 function_caps; | 473 | u32 function_caps; |
472 | u32 rx_fc; /* Rx flow control */ | 474 | u32 rx_fc; /* Rx flow control */ |
@@ -536,6 +538,14 @@ static inline u16 be_max_qs(struct be_adapter *adapter) | |||
536 | return min_t(u16, num, num_online_cpus()); | 538 | return min_t(u16, num, num_online_cpus()); |
537 | } | 539 | } |
538 | 540 | ||
541 | /* Is BE in pvid_tagging mode */ | ||
542 | #define be_pvid_tagging_enabled(adapter) (adapter->pvid) | ||
543 | |||
544 | /* Is BE in QNQ multi-channel mode */ | ||
545 | #define be_is_qnq_mode(adapter) (adapter->mc_type == FLEX10 || \ | ||
546 | adapter->mc_type == vNIC1 || \ | ||
547 | adapter->mc_type == UFP) | ||
548 | |||
539 | #define lancer_chip(adapter) (adapter->pdev->device == OC_DEVICE_ID3 || \ | 549 | #define lancer_chip(adapter) (adapter->pdev->device == OC_DEVICE_ID3 || \ |
540 | adapter->pdev->device == OC_DEVICE_ID4) | 550 | adapter->pdev->device == OC_DEVICE_ID4) |
541 | 551 | ||