aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-07-09 21:24:39 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-09 21:24:39 -0400
commit496322bc91e35007ed754184dcd447a02b6dd685 (patch)
treef5298d0a74c0a6e65c0e98050b594b8d020904c1 /drivers/s390/net
parent2e17c5a97e231f3cb426f4b7895eab5be5c5442e (diff)
parent56e0ef527b184b3de2d7f88c6190812b2b2ac6bf (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Pull networking updates from David Miller: "This is a re-do of the net-next pull request for the current merge window. The only difference from the one I made the other day is that this has Eliezer's interface renames and the timeout handling changes made based upon your feedback, as well as a few bug fixes that have trickeled in. Highlights: 1) Low latency device polling, eliminating the cost of interrupt handling and context switches. Allows direct polling of a network device from socket operations, such as recvmsg() and poll(). Currently ixgbe, mlx4, and bnx2x support this feature. Full high level description, performance numbers, and design in commit 0a4db187a999 ("Merge branch 'll_poll'") From Eliezer Tamir. 2) With the routing cache removed, ip_check_mc_rcu() gets exercised more than ever before in the case where we have lots of multicast addresses. Use a hash table instead of a simple linked list, from Eric Dumazet. 3) Add driver for Atheros CQA98xx 802.11ac wireless devices, from Bartosz Markowski, Janusz Dziedzic, Kalle Valo, Marek Kwaczynski, Marek Puzyniak, Michal Kazior, and Sujith Manoharan. 4) Support reporting the TUN device persist flag to userspace, from Pavel Emelyanov. 5) Allow controlling network device VF link state using netlink, from Rony Efraim. 6) Support GRE tunneling in openvswitch, from Pravin B Shelar. 7) Adjust SOCK_MIN_RCVBUF and SOCK_MIN_SNDBUF for modern times, from Daniel Borkmann and Eric Dumazet. 8) Allow controlling of TCP quickack behavior on a per-route basis, from Cong Wang. 9) Several bug fixes and improvements to vxlan from Stephen Hemminger, Pravin B Shelar, and Mike Rapoport. In particular, support receiving on multiple UDP ports. 10) Major cleanups, particular in the area of debugging and cookie lifetime handline, to the SCTP protocol code. From Daniel Borkmann. 11) Allow packets to cross network namespaces when traversing tunnel devices. From Nicolas Dichtel. 12) Allow monitoring netlink traffic via AF_PACKET sockets, in a manner akin to how we monitor real network traffic via ptype_all. From Daniel Borkmann. 13) Several bug fixes and improvements for the new alx device driver, from Johannes Berg. 14) Fix scalability issues in the netem packet scheduler's time queue, by using an rbtree. From Eric Dumazet. 15) Several bug fixes in TCP loss recovery handling, from Yuchung Cheng. 16) Add support for GSO segmentation of MPLS packets, from Simon Horman. 17) Make network notifiers have a real data type for the opaque pointer that's passed into them. Use this to properly handle network device flag changes in arp_netdev_event(). From Jiri Pirko and Timo Teräs. 18) Convert several drivers over to module_pci_driver(), from Peter Huewe. 19) tcp_fixup_rcvbuf() can loop 500 times over loopback, just use a O(1) calculation instead. From Eric Dumazet. 20) Support setting of explicit tunnel peer addresses in ipv6, just like ipv4. From Nicolas Dichtel. 21) Protect x86 BPF JIT against spraying attacks, from Eric Dumazet. 22) Prevent a single high rate flow from overruning an individual cpu during RX packet processing via selective flow shedding. From Willem de Bruijn. 23) Don't use spinlocks in TCP md5 signing fast paths, from Eric Dumazet. 24) Don't just drop GSO packets which are above the TBF scheduler's burst limit, chop them up so they are in-bounds instead. Also from Eric Dumazet. 25) VLAN offloads are missed when configured on top of a bridge, fix from Vlad Yasevich. 26) Support IPV6 in ping sockets. From Lorenzo Colitti. 27) Receive flow steering targets should be updated at poll() time too, from David Majnemer. 28) Fix several corner case regressions in PMTU/redirect handling due to the routing cache removal, from Timo Teräs. 29) We have to be mindful of ipv4 mapped ipv6 sockets in upd_v6_push_pending_frames(). From Hannes Frederic Sowa. 30) Fix L2TP sequence number handling bugs, from James Chapman." * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1214 commits) drivers/net: caif: fix wrong rtnl_is_locked() usage drivers/net: enic: release rtnl_lock on error-path vhost-net: fix use-after-free in vhost_net_flush net: mv643xx_eth: do not use port number as platform device id net: sctp: confirm route during forward progress virtio_net: fix race in RX VQ processing virtio: support unlocked queue poll net/cadence/macb: fix bug/typo in extracting gem_irq_read_clear bit Documentation: Fix references to defunct linux-net@vger.kernel.org net/fs: change busy poll time accounting net: rename low latency sockets functions to busy poll bridge: fix some kernel warning in multicast timer sfc: Fix memory leak when discarding scattered packets sit: fix tunnel update via netlink dt:net:stmmac: Add dt specific phy reset callback support. dt:net:stmmac: Add support to dwmac version 3.610 and 3.710 dt:net:stmmac: Allocate platform data only if its NULL. net:stmmac: fix memleak in the open method ipv6: rt6_check_neigh should successfully verify neigh if no NUD information are available net: ipv6: fix wrong ping_v6_sendmsg return value ...
Diffstat (limited to 'drivers/s390/net')
-rw-r--r--drivers/s390/net/netiucv.c20
-rw-r--r--drivers/s390/net/qeth_core.h2
-rw-r--r--drivers/s390/net/qeth_core_main.c23
3 files changed, 14 insertions, 31 deletions
diff --git a/drivers/s390/net/netiucv.c b/drivers/s390/net/netiucv.c
index 9ca3996f65b2..279ad504ec3c 100644
--- a/drivers/s390/net/netiucv.c
+++ b/drivers/s390/net/netiucv.c
@@ -130,26 +130,6 @@ static inline int iucv_dbf_passes(debug_info_t *dbf_grp, int level)
130/** 130/**
131 * some more debug stuff 131 * some more debug stuff
132 */ 132 */
133#define IUCV_HEXDUMP16(importance,header,ptr) \
134PRINT_##importance(header "%02x %02x %02x %02x %02x %02x %02x %02x " \
135 "%02x %02x %02x %02x %02x %02x %02x %02x\n", \
136 *(((char*)ptr)),*(((char*)ptr)+1),*(((char*)ptr)+2), \
137 *(((char*)ptr)+3),*(((char*)ptr)+4),*(((char*)ptr)+5), \
138 *(((char*)ptr)+6),*(((char*)ptr)+7),*(((char*)ptr)+8), \
139 *(((char*)ptr)+9),*(((char*)ptr)+10),*(((char*)ptr)+11), \
140 *(((char*)ptr)+12),*(((char*)ptr)+13), \
141 *(((char*)ptr)+14),*(((char*)ptr)+15)); \
142PRINT_##importance(header "%02x %02x %02x %02x %02x %02x %02x %02x " \
143 "%02x %02x %02x %02x %02x %02x %02x %02x\n", \
144 *(((char*)ptr)+16),*(((char*)ptr)+17), \
145 *(((char*)ptr)+18),*(((char*)ptr)+19), \
146 *(((char*)ptr)+20),*(((char*)ptr)+21), \
147 *(((char*)ptr)+22),*(((char*)ptr)+23), \
148 *(((char*)ptr)+24),*(((char*)ptr)+25), \
149 *(((char*)ptr)+26),*(((char*)ptr)+27), \
150 *(((char*)ptr)+28),*(((char*)ptr)+29), \
151 *(((char*)ptr)+30),*(((char*)ptr)+31));
152
153#define PRINTK_HEADER " iucv: " /* for debugging */ 133#define PRINTK_HEADER " iucv: " /* for debugging */
154 134
155/* dummy device to make sure netiucv_pm functions are called */ 135/* dummy device to make sure netiucv_pm functions are called */
diff --git a/drivers/s390/net/qeth_core.h b/drivers/s390/net/qeth_core.h
index c4f392d5db4c..41ef94320ee8 100644
--- a/drivers/s390/net/qeth_core.h
+++ b/drivers/s390/net/qeth_core.h
@@ -738,7 +738,7 @@ struct qeth_rx {
738 int qdio_err; 738 int qdio_err;
739}; 739};
740 740
741#define QETH_NAPI_WEIGHT 128 741#define QETH_NAPI_WEIGHT NAPI_POLL_WEIGHT
742 742
743struct qeth_card { 743struct qeth_card {
744 struct list_head list; 744 struct list_head list;
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
index 70ce6b6fce3b..0a328d0d11be 100644
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -1282,8 +1282,10 @@ static void qeth_free_qdio_buffers(struct qeth_card *card)
1282 1282
1283 qeth_free_cq(card); 1283 qeth_free_cq(card);
1284 cancel_delayed_work_sync(&card->buffer_reclaim_work); 1284 cancel_delayed_work_sync(&card->buffer_reclaim_work);
1285 for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; ++j) 1285 for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; ++j) {
1286 dev_kfree_skb_any(card->qdio.in_q->bufs[j].rx_skb); 1286 if (card->qdio.in_q->bufs[j].rx_skb)
1287 dev_kfree_skb_any(card->qdio.in_q->bufs[j].rx_skb);
1288 }
1287 kfree(card->qdio.in_q); 1289 kfree(card->qdio.in_q);
1288 card->qdio.in_q = NULL; 1290 card->qdio.in_q = NULL;
1289 /* inbound buffer pool */ 1291 /* inbound buffer pool */
@@ -1729,14 +1731,14 @@ static void qeth_configure_blkt_default(struct qeth_card *card, char *prcd)
1729 QETH_DBF_TEXT(SETUP, 2, "cfgblkt"); 1731 QETH_DBF_TEXT(SETUP, 2, "cfgblkt");
1730 1732
1731 if (prcd[74] == 0xF0 && prcd[75] == 0xF0 && 1733 if (prcd[74] == 0xF0 && prcd[75] == 0xF0 &&
1732 (prcd[76] == 0xF5 || prcd[76] == 0xF6)) { 1734 prcd[76] >= 0xF1 && prcd[76] <= 0xF4) {
1733 card->info.blkt.time_total = 250;
1734 card->info.blkt.inter_packet = 5;
1735 card->info.blkt.inter_packet_jumbo = 15;
1736 } else {
1737 card->info.blkt.time_total = 0; 1735 card->info.blkt.time_total = 0;
1738 card->info.blkt.inter_packet = 0; 1736 card->info.blkt.inter_packet = 0;
1739 card->info.blkt.inter_packet_jumbo = 0; 1737 card->info.blkt.inter_packet_jumbo = 0;
1738 } else {
1739 card->info.blkt.time_total = 250;
1740 card->info.blkt.inter_packet = 5;
1741 card->info.blkt.inter_packet_jumbo = 15;
1740 } 1742 }
1741} 1743}
1742 1744
@@ -2198,11 +2200,11 @@ static inline int qeth_get_initial_mtu_for_card(struct qeth_card *card)
2198 case QETH_LINK_TYPE_LANE_TR: 2200 case QETH_LINK_TYPE_LANE_TR:
2199 return 2000; 2201 return 2000;
2200 default: 2202 default:
2201 return 1492; 2203 return card->options.layer2 ? 1500 : 1492;
2202 } 2204 }
2203 case QETH_CARD_TYPE_OSM: 2205 case QETH_CARD_TYPE_OSM:
2204 case QETH_CARD_TYPE_OSX: 2206 case QETH_CARD_TYPE_OSX:
2205 return 1492; 2207 return card->options.layer2 ? 1500 : 1492;
2206 default: 2208 default:
2207 return 1500; 2209 return 1500;
2208 } 2210 }
@@ -2275,9 +2277,10 @@ static int qeth_ulp_enable_cb(struct qeth_card *card, struct qeth_reply *reply,
2275 card->info.max_mtu = mtu; 2277 card->info.max_mtu = mtu;
2276 card->qdio.in_buf_size = mtu + 2 * PAGE_SIZE; 2278 card->qdio.in_buf_size = mtu + 2 * PAGE_SIZE;
2277 } else { 2279 } else {
2278 card->info.initial_mtu = qeth_get_initial_mtu_for_card(card);
2279 card->info.max_mtu = *(__u16 *)QETH_ULP_ENABLE_RESP_MAX_MTU( 2280 card->info.max_mtu = *(__u16 *)QETH_ULP_ENABLE_RESP_MAX_MTU(
2280 iob->data); 2281 iob->data);
2282 card->info.initial_mtu = min(card->info.max_mtu,
2283 qeth_get_initial_mtu_for_card(card));
2281 card->qdio.in_buf_size = QETH_IN_BUF_SIZE_DEFAULT; 2284 card->qdio.in_buf_size = QETH_IN_BUF_SIZE_DEFAULT;
2282 } 2285 }
2283 2286