@@ -240,7 +240,6 @@ static inline int qeth_is_ipa_enabled(struct qeth_ipa_info *ipa,
240
240
#define QETH_TX_TIMEOUT 100 * HZ
241
241
#define QETH_RCD_TIMEOUT 60 * HZ
242
242
#define QETH_RECLAIM_WORK_TIME HZ
243
- #define QETH_HEADER_SIZE 32
244
243
#define QETH_MAX_PORTNO 15
245
244
246
245
/*IPv6 address autoconfiguration stuff*/
@@ -447,7 +446,7 @@ struct qeth_qdio_out_buffer {
447
446
atomic_t state ;
448
447
int next_element_to_fill ;
449
448
struct sk_buff_head skb_list ;
450
- int is_header [16 ];
449
+ int is_header [QDIO_MAX_ELEMENTS_PER_BUFFER ];
451
450
452
451
struct qaob * aob ;
453
452
struct qeth_qdio_out_q * q ;
@@ -705,17 +704,16 @@ struct qeth_discipline {
705
704
void (* start_poll )(struct ccw_device * , int , unsigned long );
706
705
qdio_handler_t * input_handler ;
707
706
qdio_handler_t * output_handler ;
707
+ int (* process_rx_buffer )(struct qeth_card * card , int budget , int * done );
708
708
int (* recover )(void * ptr );
709
709
int (* setup ) (struct ccwgroup_device * );
710
710
void (* remove ) (struct ccwgroup_device * );
711
711
int (* set_online ) (struct ccwgroup_device * );
712
712
int (* set_offline ) (struct ccwgroup_device * );
713
- void (* shutdown )(struct ccwgroup_device * );
714
- int (* prepare ) (struct ccwgroup_device * );
715
- void (* complete ) (struct ccwgroup_device * );
716
713
int (* freeze )(struct ccwgroup_device * );
717
714
int (* thaw ) (struct ccwgroup_device * );
718
715
int (* restore )(struct ccwgroup_device * );
716
+ int (* do_ioctl )(struct net_device * dev , struct ifreq * rq , int cmd );
719
717
int (* control_event_handler )(struct qeth_card * card ,
720
718
struct qeth_ipa_cmd * cmd );
721
719
};
@@ -908,14 +906,12 @@ int qeth_send_ipa_cmd(struct qeth_card *, struct qeth_cmd_buffer *,
908
906
struct qeth_cmd_buffer * qeth_get_ipacmd_buffer (struct qeth_card * ,
909
907
enum qeth_ipa_cmds , enum qeth_prot_versions );
910
908
int qeth_query_setadapterparms (struct qeth_card * );
911
- int qeth_check_qdio_errors (struct qeth_card * , struct qdio_buffer * ,
912
- unsigned int , const char * );
913
- void qeth_queue_input_buffer (struct qeth_card * , int );
914
909
struct sk_buff * qeth_core_get_next_skb (struct qeth_card * ,
915
910
struct qeth_qdio_buffer * , struct qdio_buffer_element * * , int * ,
916
911
struct qeth_hdr * * );
917
912
void qeth_schedule_recovery (struct qeth_card * );
918
913
void qeth_qdio_start_poll (struct ccw_device * , int , unsigned long );
914
+ int qeth_poll (struct napi_struct * napi , int budget );
919
915
void qeth_qdio_input_handler (struct ccw_device * ,
920
916
unsigned int , unsigned int , int ,
921
917
int , unsigned long );
@@ -936,9 +932,6 @@ void qeth_prepare_control_data(struct qeth_card *, int,
936
932
void qeth_release_buffer (struct qeth_channel * , struct qeth_cmd_buffer * );
937
933
void qeth_prepare_ipa_cmd (struct qeth_card * , struct qeth_cmd_buffer * , char );
938
934
struct qeth_cmd_buffer * qeth_wait_for_buffer (struct qeth_channel * );
939
- int qeth_mdio_read (struct net_device * , int , int );
940
- int qeth_snmp_command (struct qeth_card * , char __user * );
941
- int qeth_query_oat_command (struct qeth_card * , char __user * );
942
935
int qeth_query_switch_attributes (struct qeth_card * card ,
943
936
struct qeth_switch_info * sw_info );
944
937
int qeth_send_control_data (struct qeth_card * , int , struct qeth_cmd_buffer * ,
@@ -953,16 +946,18 @@ int qeth_get_elements_no(struct qeth_card *card, struct sk_buff *skb,
953
946
int extra_elems , int data_offset );
954
947
int qeth_get_elements_for_frags (struct sk_buff * );
955
948
int qeth_do_send_packet_fast (struct qeth_card * , struct qeth_qdio_out_q * ,
956
- struct sk_buff * , struct qeth_hdr * , int , int , int );
949
+ struct sk_buff * , struct qeth_hdr * , int , int );
957
950
int qeth_do_send_packet (struct qeth_card * , struct qeth_qdio_out_q * ,
958
951
struct sk_buff * , struct qeth_hdr * , int );
952
+ int qeth_do_ioctl (struct net_device * dev , struct ifreq * rq , int cmd );
959
953
int qeth_core_get_sset_count (struct net_device * , int );
960
954
void qeth_core_get_ethtool_stats (struct net_device * ,
961
955
struct ethtool_stats * , u64 * );
962
956
void qeth_core_get_strings (struct net_device * , u32 , u8 * );
963
957
void qeth_core_get_drvinfo (struct net_device * , struct ethtool_drvinfo * );
964
958
void qeth_dbf_longtext (debug_info_t * id , int level , char * text , ...);
965
- int qeth_core_ethtool_get_settings (struct net_device * , struct ethtool_cmd * );
959
+ int qeth_core_ethtool_get_link_ksettings (struct net_device * netdev ,
960
+ struct ethtool_link_ksettings * cmd );
966
961
int qeth_set_access_ctrl_online (struct qeth_card * card , int fallback );
967
962
int qeth_hdr_chk_and_bounce (struct sk_buff * , struct qeth_hdr * * , int );
968
963
int qeth_configure_cq (struct qeth_card * , enum qeth_cq );
0 commit comments