Skip to content

Commit b46b99d

Browse files
committed
Merge branch 's390-qeth-updates'
Julian Wiedmann says: ==================== more s390/net updates here's a second batch of s390/net patches for net-next. A mixed bunch of qeth cleanups, and a few patches to add support for ETHTOOL_GLINKSETTINGS. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 40077e0 + 6ffa4d1 commit b46b99d

File tree

4 files changed

+268
-393
lines changed

4 files changed

+268
-393
lines changed

drivers/s390/net/qeth_core.h

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ static inline int qeth_is_ipa_enabled(struct qeth_ipa_info *ipa,
240240
#define QETH_TX_TIMEOUT 100 * HZ
241241
#define QETH_RCD_TIMEOUT 60 * HZ
242242
#define QETH_RECLAIM_WORK_TIME HZ
243-
#define QETH_HEADER_SIZE 32
244243
#define QETH_MAX_PORTNO 15
245244

246245
/*IPv6 address autoconfiguration stuff*/
@@ -447,7 +446,7 @@ struct qeth_qdio_out_buffer {
447446
atomic_t state;
448447
int next_element_to_fill;
449448
struct sk_buff_head skb_list;
450-
int is_header[16];
449+
int is_header[QDIO_MAX_ELEMENTS_PER_BUFFER];
451450

452451
struct qaob *aob;
453452
struct qeth_qdio_out_q *q;
@@ -705,17 +704,16 @@ struct qeth_discipline {
705704
void (*start_poll)(struct ccw_device *, int, unsigned long);
706705
qdio_handler_t *input_handler;
707706
qdio_handler_t *output_handler;
707+
int (*process_rx_buffer)(struct qeth_card *card, int budget, int *done);
708708
int (*recover)(void *ptr);
709709
int (*setup) (struct ccwgroup_device *);
710710
void (*remove) (struct ccwgroup_device *);
711711
int (*set_online) (struct ccwgroup_device *);
712712
int (*set_offline) (struct ccwgroup_device *);
713-
void (*shutdown)(struct ccwgroup_device *);
714-
int (*prepare) (struct ccwgroup_device *);
715-
void (*complete) (struct ccwgroup_device *);
716713
int (*freeze)(struct ccwgroup_device *);
717714
int (*thaw) (struct ccwgroup_device *);
718715
int (*restore)(struct ccwgroup_device *);
716+
int (*do_ioctl)(struct net_device *dev, struct ifreq *rq, int cmd);
719717
int (*control_event_handler)(struct qeth_card *card,
720718
struct qeth_ipa_cmd *cmd);
721719
};
@@ -908,14 +906,12 @@ int qeth_send_ipa_cmd(struct qeth_card *, struct qeth_cmd_buffer *,
908906
struct qeth_cmd_buffer *qeth_get_ipacmd_buffer(struct qeth_card *,
909907
enum qeth_ipa_cmds, enum qeth_prot_versions);
910908
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);
914909
struct sk_buff *qeth_core_get_next_skb(struct qeth_card *,
915910
struct qeth_qdio_buffer *, struct qdio_buffer_element **, int *,
916911
struct qeth_hdr **);
917912
void qeth_schedule_recovery(struct qeth_card *);
918913
void qeth_qdio_start_poll(struct ccw_device *, int, unsigned long);
914+
int qeth_poll(struct napi_struct *napi, int budget);
919915
void qeth_qdio_input_handler(struct ccw_device *,
920916
unsigned int, unsigned int, int,
921917
int, unsigned long);
@@ -936,9 +932,6 @@ void qeth_prepare_control_data(struct qeth_card *, int,
936932
void qeth_release_buffer(struct qeth_channel *, struct qeth_cmd_buffer *);
937933
void qeth_prepare_ipa_cmd(struct qeth_card *, struct qeth_cmd_buffer *, char);
938934
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 *);
942935
int qeth_query_switch_attributes(struct qeth_card *card,
943936
struct qeth_switch_info *sw_info);
944937
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,
953946
int extra_elems, int data_offset);
954947
int qeth_get_elements_for_frags(struct sk_buff *);
955948
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);
957950
int qeth_do_send_packet(struct qeth_card *, struct qeth_qdio_out_q *,
958951
struct sk_buff *, struct qeth_hdr *, int);
952+
int qeth_do_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
959953
int qeth_core_get_sset_count(struct net_device *, int);
960954
void qeth_core_get_ethtool_stats(struct net_device *,
961955
struct ethtool_stats *, u64 *);
962956
void qeth_core_get_strings(struct net_device *, u32, u8 *);
963957
void qeth_core_get_drvinfo(struct net_device *, struct ethtool_drvinfo *);
964958
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);
966961
int qeth_set_access_ctrl_online(struct qeth_card *card, int fallback);
967962
int qeth_hdr_chk_and_bounce(struct sk_buff *, struct qeth_hdr **, int);
968963
int qeth_configure_cq(struct qeth_card *, enum qeth_cq);

0 commit comments

Comments
 (0)