s390: qeth patches for net-next
Subsystems (5)
cover s390: qeth patches for net-next
From: Ursula Braun <[email protected]>
Hi Dave,
here are some s390 related patches for net-next. The qeth patches are performance optimizations in the driver. The qdio patch corrects a warning condition.
shortlog:
Thomas Richter(1):
s390/qeth: switch to napi_gro_receive
Lakhvich Dmitriy (1):
s390/qeth: optimize MAC handling in rx_mode callback
Eugene Crosser (1):
s390/qdio: fix WARN_ON_ONCE condition
Thanks,
Ursula
Signature · 1 line
2.3.9
PATCH 1/3 Subject: s390/qeth: switch to napi_gro_receive
From: Thomas Richter <[email protected]
Add support for GRO (generic receive offload) in the layer 2 part of device driver qeth. This results in a performance improvement when GRO and RX is turned on.
--- drivers/s390/net/qeth_l2_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/s390/net/qeth_l2_main.c +1 -1
@@ -511,7 +511,7 @@ static int qeth_l2_process_inbound_buffer(struct qeth_card *card,if (skb->protocol ==htons (ETH_P_802_2 )) *((__u32 *)skb->cb) = ++card->seqno.pkt_seqno; len = skb->len; -netif_receive_skb (skb); +napi_gro_receive (&card->napi, skb);break ;case QETH_HEADER_TYPE_OSN :if (card->info.type ==QETH_CARD_TYPE_OSN ) {
Signature · 1 line
2.3.9
PATCH 2/3 s390/qeth: optimize MAC handling in rx_mode callback
In reply to Ursula BraunFrom: Lakhvich Dmitriy <[email protected]>
In layer2 mode of the qeth driver, MAC address lists from struct net_device require mapping to the OSA-card. The existing implementation is inefficient for lists with more than several MAC addresses, since for every ndo_set_rx_mode callback it removes all MAC addresses first, and then registers the current MAC address list. This patch changes implementation of ndo_set_rx_mode callback in qeth, only performing hardware registration/removal for new/deleted addresses. To shorten lookup of MAC addresses registered addresses are kept in a hashtable instead of a linear list.
--- drivers/s390/net/qeth_core.h | 19 ++++-- drivers/s390/net/qeth_l2_main.c | 137 ++++++++++++++++++++++++++++------------ 2 files changed, 111 insertions(+), 45 deletions(-)
drivers/s390/net/qeth_core.h +13 -6
@@ -18,6 +18,7 @@#include <linux/bitops.h> #include <linux/seq_file.h> #include <linux/ethtool.h> +#include <linux/hashtable.h> #include <net/ipv6.h> #include <net/if_inet6.h>
@@ -739,11 +740,17 @@ struct qeth_vlan_vid {unsigned short vid; }; -struct qeth_mc_mac { -struct list_head list; -__u8 mc_addr[MAX_ADDR_LEN ]; -unsigned char mc_addrlen; -int is_vmac; +enum qeth_mac_disposition { +QETH_DISP_MAC_DELETE =0 , +QETH_DISP_MAC_DO_NOTHING =1 , +QETH_DISP_MAC_ADD =2 , +}; + +struct qeth_mac { +u8 mac_addr[OSA_ADDR_LEN ]; +u8 is_uc:1 ; +u8 disp_flag:2 ; +struct hlist_node hnode; };struct qeth_rx {
@@ -790,7 +797,7 @@ struct qeth_card {spinlock_t mclock;unsigned long active_vlans[BITS_TO_LONGS (VLAN_N_VID )];struct list_head vid_list; -struct list_head mc_list; +DECLARE_HASHTABLE (mac_htable,4 );struct work_struct kernel_thread_starter;spinlock_t thread_mask_lock;unsigned long thread_start_mask;
drivers/s390/net/qeth_l2_main.c +98 -39
225 lines not on this page · raw message
Signature · 1 line
2.3.9
PATCH 3/3 s390/qdio: fix WARN_ON_ONCE condition
In reply to Ursula BraunFrom: Eugene Crosser <[email protected]
If HiperSockets Completion Queueing is enabled, qdio always issues a warning, since the condition is always met. This patch fixes the condition in WARN_ON_ONCE that was always true.
--- drivers/s390/cio/qdio_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/s390/cio/qdio_main.c +2 -2
@@ -319,6 +319,8 @@ static int qdio_siga_output(struct qdio_q *q, unsigned int *busy_bit,int retries =0 , cc;unsigned long laob =0 ; +WARN_ON_ONCE (aob && ((queue_type (q) !=QDIO_IQDIO_QFMT ) || + !q->u.out.use_cq));if (q->u.out.use_cq && aob !=0 ) { fc =QDIO_SIGA_WRITEQ ; laob = aob;
@@ -329,8 +331,6 @@ static int qdio_siga_output(struct qdio_q *q, unsigned int *busy_bit, fc |=QDIO_SIGA_QEBSM_FLAG ; } again: -WARN_ON_ONCE ((aob &&queue_type (q) !=QDIO_IQDIO_QFMT ) || - (aob && fc !=QDIO_SIGA_WRITEQ )); cc =do_siga_output (schid, q->mask, busy_bit, fc, laob);/* hipersocket busy condition */
Signature · 1 line
2.3.9
David Miller
maintainerFrom: Ursula Braun <[email protected]>
Date: Tue, 6 Oct 2015 15:12:26 +0200
Quoted 3 lines
here are some s390 related patches for net-next. The qeth patches are performance optimizations in the driver. The qdio patch corrects a warning condition.
Series applied, thanks.