56
56
#include <linux/ptp_clock_kernel.h>
57
57
#include "i40e_type.h"
58
58
#include "i40e_prototype.h"
59
- #ifdef I40E_FCOE
60
- #include "i40e_fcoe.h"
61
- #endif
62
59
#include "i40e_client.h"
63
60
#include "i40e_virtchnl.h"
64
61
#include "i40e_virtchnl_pf.h"
85
82
(((pf)->flags & I40E_FLAG_128_QP_RSS_CAPABLE) ? 128 : 64)
86
83
#define I40E_FDIR_RING 0
87
84
#define I40E_FDIR_RING_COUNT 32
88
- #ifdef I40E_FCOE
89
- #define I40E_DEFAULT_FCOE 8 /* default number of QPs for FCoE */
90
- #define I40E_MINIMUM_FCOE 1 /* minimum number of QPs for FCoE */
91
- #endif /* I40E_FCOE */
92
85
#define I40E_MAX_AQ_BUF_SIZE 4096
93
86
#define I40E_AQ_LEN 256
94
87
#define I40E_AQ_WORK_LIMIT 66 /* max number of VFs + a little */
@@ -347,10 +340,6 @@ struct i40e_pf {
347
340
u16 num_vmdq_msix ; /* num queue vectors per vmdq pool */
348
341
u16 num_req_vfs ; /* num VFs requested for this VF */
349
342
u16 num_vf_qps ; /* num queue pairs per VF */
350
- #ifdef I40E_FCOE
351
- u16 num_fcoe_qps ; /* num fcoe queues this PF has set up */
352
- u16 num_fcoe_msix ; /* num queue vectors per fcoe pool */
353
- #endif /* I40E_FCOE */
354
343
u16 num_lan_qps ; /* num lan queues this PF has set up */
355
344
u16 num_lan_msix ; /* num queue vectors for the base PF vsi */
356
345
u16 num_fdsb_msix ; /* num queue vectors for sideband Fdir */
@@ -411,9 +400,6 @@ struct i40e_pf {
411
400
#define I40E_FLAG_FDIR_REQUIRES_REINIT BIT_ULL(8)
412
401
#define I40E_FLAG_NEED_LINK_UPDATE BIT_ULL(9)
413
402
#define I40E_FLAG_IWARP_ENABLED BIT_ULL(10)
414
- #ifdef I40E_FCOE
415
- #define I40E_FLAG_FCOE_ENABLED BIT_ULL(11)
416
- #endif /* I40E_FCOE */
417
403
#define I40E_FLAG_CLEAN_ADMINQ BIT_ULL(14)
418
404
#define I40E_FLAG_FILTER_SYNC BIT_ULL(15)
419
405
#define I40E_FLAG_SERVICE_CLIENT_REQUESTED BIT_ULL(16)
@@ -461,10 +447,6 @@ struct i40e_pf {
461
447
*/
462
448
u64 hw_disabled_flags ;
463
449
464
- #ifdef I40E_FCOE
465
- struct i40e_fcoe fcoe ;
466
-
467
- #endif /* I40E_FCOE */
468
450
struct i40e_client_instance * cinst ;
469
451
bool stat_offsets_loaded ;
470
452
struct i40e_hw_port_stats stats ;
@@ -522,6 +504,7 @@ struct i40e_pf {
522
504
523
505
u32 fcoe_hmc_filt_num ;
524
506
u32 fcoe_hmc_cntx_num ;
507
+
525
508
struct i40e_filter_control_settings filter_settings ;
526
509
527
510
struct ptp_clock * ptp_clock ;
@@ -641,11 +624,6 @@ struct i40e_vsi {
641
624
struct rtnl_link_stats64 net_stats_offsets ;
642
625
struct i40e_eth_stats eth_stats ;
643
626
struct i40e_eth_stats eth_stats_offsets ;
644
- #ifdef I40E_FCOE
645
- struct i40e_fcoe_stats fcoe_stats ;
646
- struct i40e_fcoe_stats fcoe_stats_offsets ;
647
- bool fcoe_stat_offsets_loaded ;
648
- #endif
649
627
u32 tx_restart ;
650
628
u32 tx_busy ;
651
629
u64 tx_linearize ;
@@ -918,11 +896,6 @@ int i40e_sync_vsi_filters(struct i40e_vsi *vsi);
918
896
struct i40e_vsi * i40e_vsi_setup (struct i40e_pf * pf , u8 type ,
919
897
u16 uplink , u32 param1 );
920
898
int i40e_vsi_release (struct i40e_vsi * vsi );
921
- #ifdef I40E_FCOE
922
- void i40e_vsi_setup_queue_map (struct i40e_vsi * vsi ,
923
- struct i40e_vsi_context * ctxt ,
924
- u8 enabled_tc , bool is_add );
925
- #endif
926
899
void i40e_service_event_schedule (struct i40e_pf * pf );
927
900
void i40e_notify_client_of_vf_msg (struct i40e_vsi * vsi , u32 vf_id ,
928
901
u8 * msg , u16 len );
@@ -982,20 +955,7 @@ static inline void i40e_irq_dynamic_enable(struct i40e_vsi *vsi, int vector)
982
955
983
956
void i40e_irq_dynamic_disable_icr0 (struct i40e_pf * pf );
984
957
void i40e_irq_dynamic_enable_icr0 (struct i40e_pf * pf , bool clearpba );
985
- #ifdef I40E_FCOE
986
- void i40e_get_netdev_stats_struct (struct net_device * netdev ,
987
- struct rtnl_link_stats64 * storage );
988
- int i40e_set_mac (struct net_device * netdev , void * p );
989
- void i40e_set_rx_mode (struct net_device * netdev );
990
- #endif
991
958
int i40e_ioctl (struct net_device * netdev , struct ifreq * ifr , int cmd );
992
- #ifdef I40E_FCOE
993
- void i40e_tx_timeout (struct net_device * netdev );
994
- int i40e_vlan_rx_add_vid (struct net_device * netdev ,
995
- __always_unused __be16 proto , u16 vid );
996
- int i40e_vlan_rx_kill_vid (struct net_device * netdev ,
997
- __always_unused __be16 proto , u16 vid );
998
- #endif
999
959
int i40e_open (struct net_device * netdev );
1000
960
int i40e_close (struct net_device * netdev );
1001
961
int i40e_vsi_open (struct i40e_vsi * vsi );
@@ -1009,25 +969,6 @@ struct i40e_mac_filter *i40e_add_mac_filter(struct i40e_vsi *vsi,
1009
969
int i40e_del_mac_filter (struct i40e_vsi * vsi , const u8 * macaddr );
1010
970
bool i40e_is_vsi_in_vlan (struct i40e_vsi * vsi );
1011
971
struct i40e_mac_filter * i40e_find_mac (struct i40e_vsi * vsi , const u8 * macaddr );
1012
- #ifdef I40E_FCOE
1013
- int __i40e_setup_tc (struct net_device * netdev , u32 handle , __be16 proto ,
1014
- struct tc_to_netdev * tc );
1015
- void i40e_netpoll (struct net_device * netdev );
1016
- int i40e_fcoe_enable (struct net_device * netdev );
1017
- int i40e_fcoe_disable (struct net_device * netdev );
1018
- int i40e_fcoe_vsi_init (struct i40e_vsi * vsi , struct i40e_vsi_context * ctxt );
1019
- u8 i40e_get_fcoe_tc_map (struct i40e_pf * pf );
1020
- void i40e_fcoe_config_netdev (struct net_device * netdev , struct i40e_vsi * vsi );
1021
- void i40e_fcoe_vsi_setup (struct i40e_pf * pf );
1022
- void i40e_init_pf_fcoe (struct i40e_pf * pf );
1023
- int i40e_fcoe_setup_ddp_resources (struct i40e_vsi * vsi );
1024
- void i40e_fcoe_free_ddp_resources (struct i40e_vsi * vsi );
1025
- int i40e_fcoe_handle_offload (struct i40e_ring * rx_ring ,
1026
- union i40e_rx_desc * rx_desc ,
1027
- struct sk_buff * skb );
1028
- void i40e_fcoe_handle_status (struct i40e_ring * rx_ring ,
1029
- union i40e_rx_desc * rx_desc , u8 prog_id );
1030
- #endif /* I40E_FCOE */
1031
972
void i40e_vlan_stripping_enable (struct i40e_vsi * vsi );
1032
973
#ifdef CONFIG_I40E_DCB
1033
974
void i40e_dcbnl_flush_apps (struct i40e_pf * pf ,
0 commit comments