aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth_l2_main.c
diff options
context:
space:
mode:
authorFrank Blaschka <frank.blaschka@de.ibm.com>2008-06-06 06:37:46 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-06-10 18:20:35 -0400
commit14cc21b6770972e5d1487dbf3a2caaf63cae909a (patch)
treeb1abde71fd48f6d05b295f67acdc11f9bb3094ec /drivers/s390/net/qeth_l2_main.c
parentf06f6f3224afdd7e58207d1f5950f4666c5f095f (diff)
qeth: reduce number of kernel messages
Remove unnecessary messages. Write important debug information to s390dbf. Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/s390/net/qeth_l2_main.c')
-rw-r--r--drivers/s390/net/qeth_l2_main.c29
1 files changed, 11 insertions, 18 deletions
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c
index d35a74c3b475..dd7659c8de16 100644
--- a/drivers/s390/net/qeth_l2_main.c
+++ b/drivers/s390/net/qeth_l2_main.c
@@ -131,14 +131,14 @@ static int qeth_l2_send_setgroupmac_cb(struct qeth_card *card,
131 mac = &cmd->data.setdelmac.mac[0]; 131 mac = &cmd->data.setdelmac.mac[0];
132 /* MAC already registered, needed in couple/uncouple case */ 132 /* MAC already registered, needed in couple/uncouple case */
133 if (cmd->hdr.return_code == 0x2005) { 133 if (cmd->hdr.return_code == 0x2005) {
134 PRINT_WARN("Group MAC %02x:%02x:%02x:%02x:%02x:%02x " \ 134 QETH_DBF_MESSAGE(2, "Group MAC %02x:%02x:%02x:%02x:%02x:%02x "
135 "already existing on %s \n", 135 "already existing on %s \n",
136 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], 136 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5],
137 QETH_CARD_IFNAME(card)); 137 QETH_CARD_IFNAME(card));
138 cmd->hdr.return_code = 0; 138 cmd->hdr.return_code = 0;
139 } 139 }
140 if (cmd->hdr.return_code) 140 if (cmd->hdr.return_code)
141 PRINT_ERR("Could not set group MAC " \ 141 QETH_DBF_MESSAGE(2, "Could not set group MAC "
142 "%02x:%02x:%02x:%02x:%02x:%02x on %s: %x\n", 142 "%02x:%02x:%02x:%02x:%02x:%02x on %s: %x\n",
143 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], 143 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5],
144 QETH_CARD_IFNAME(card), cmd->hdr.return_code); 144 QETH_CARD_IFNAME(card), cmd->hdr.return_code);
@@ -163,7 +163,7 @@ static int qeth_l2_send_delgroupmac_cb(struct qeth_card *card,
163 cmd = (struct qeth_ipa_cmd *) data; 163 cmd = (struct qeth_ipa_cmd *) data;
164 mac = &cmd->data.setdelmac.mac[0]; 164 mac = &cmd->data.setdelmac.mac[0];
165 if (cmd->hdr.return_code) 165 if (cmd->hdr.return_code)
166 PRINT_ERR("Could not delete group MAC " \ 166 QETH_DBF_MESSAGE(2, "Could not delete group MAC "
167 "%02x:%02x:%02x:%02x:%02x:%02x on %s: %x\n", 167 "%02x:%02x:%02x:%02x:%02x:%02x on %s: %x\n",
168 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], 168 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5],
169 QETH_CARD_IFNAME(card), cmd->hdr.return_code); 169 QETH_CARD_IFNAME(card), cmd->hdr.return_code);
@@ -183,10 +183,8 @@ static void qeth_l2_add_mc(struct qeth_card *card, __u8 *mac)
183 183
184 mc = kmalloc(sizeof(struct qeth_mc_mac), GFP_ATOMIC); 184 mc = kmalloc(sizeof(struct qeth_mc_mac), GFP_ATOMIC);
185 185
186 if (!mc) { 186 if (!mc)
187 PRINT_ERR("no mem vor mc mac address\n");
188 return; 187 return;
189 }
190 188
191 memcpy(mc->mc_addr, mac, OSA_ADDR_LEN); 189 memcpy(mc->mc_addr, mac, OSA_ADDR_LEN);
192 mc->mc_addrlen = OSA_ADDR_LEN; 190 mc->mc_addrlen = OSA_ADDR_LEN;
@@ -277,7 +275,7 @@ static int qeth_l2_send_setdelvlan_cb(struct qeth_card *card,
277 QETH_DBF_TEXT(TRACE, 2, "L2sdvcb"); 275 QETH_DBF_TEXT(TRACE, 2, "L2sdvcb");
278 cmd = (struct qeth_ipa_cmd *) data; 276 cmd = (struct qeth_ipa_cmd *) data;
279 if (cmd->hdr.return_code) { 277 if (cmd->hdr.return_code) {
280 PRINT_ERR("Error in processing VLAN %i on %s: 0x%x. " 278 QETH_DBF_MESSAGE(2, "Error in processing VLAN %i on %s: 0x%x. "
281 "Continuing\n", cmd->data.setdelvlan.vlan_id, 279 "Continuing\n", cmd->data.setdelvlan.vlan_id,
282 QETH_CARD_IFNAME(card), cmd->hdr.return_code); 280 QETH_CARD_IFNAME(card), cmd->hdr.return_code);
283 QETH_DBF_TEXT_(TRACE, 2, "L2VL%4x", cmd->hdr.command); 281 QETH_DBF_TEXT_(TRACE, 2, "L2VL%4x", cmd->hdr.command);
@@ -330,8 +328,6 @@ static void qeth_l2_vlan_rx_add_vid(struct net_device *dev, unsigned short vid)
330 spin_lock_bh(&card->vlanlock); 328 spin_lock_bh(&card->vlanlock);
331 list_add_tail(&id->list, &card->vid_list); 329 list_add_tail(&id->list, &card->vid_list);
332 spin_unlock_bh(&card->vlanlock); 330 spin_unlock_bh(&card->vlanlock);
333 } else {
334 PRINT_ERR("no memory for vid\n");
335 } 331 }
336} 332}
337 333
@@ -547,16 +543,15 @@ static int qeth_l2_request_initial_mac(struct qeth_card *card)
547 543
548 rc = qeth_query_setadapterparms(card); 544 rc = qeth_query_setadapterparms(card);
549 if (rc) { 545 if (rc) {
550 PRINT_WARN("could not query adapter parameters on device %s: " 546 QETH_DBF_MESSAGE(2, "could not query adapter parameters on "
551 "x%x\n", CARD_BUS_ID(card), rc); 547 "device %s: x%x\n", CARD_BUS_ID(card), rc);
552 } 548 }
553 549
554 if (card->info.guestlan) { 550 if (card->info.guestlan) {
555 rc = qeth_setadpparms_change_macaddr(card); 551 rc = qeth_setadpparms_change_macaddr(card);
556 if (rc) { 552 if (rc) {
557 PRINT_WARN("couldn't get MAC address on " 553 QETH_DBF_MESSAGE(2, "couldn't get MAC address on "
558 "device %s: x%x\n", 554 "device %s: x%x\n", CARD_BUS_ID(card), rc);
559 CARD_BUS_ID(card), rc);
560 QETH_DBF_TEXT_(SETUP, 2, "1err%d", rc); 555 QETH_DBF_TEXT_(SETUP, 2, "1err%d", rc);
561 return rc; 556 return rc;
562 } 557 }
@@ -582,8 +577,6 @@ static int qeth_l2_set_mac_address(struct net_device *dev, void *p)
582 } 577 }
583 578
584 if (card->info.type == QETH_CARD_TYPE_OSN) { 579 if (card->info.type == QETH_CARD_TYPE_OSN) {
585 PRINT_WARN("Setting MAC address on %s is not supported.\n",
586 dev->name);
587 QETH_DBF_TEXT(TRACE, 3, "setmcOSN"); 580 QETH_DBF_TEXT(TRACE, 3, "setmcOSN");
588 return -EOPNOTSUPP; 581 return -EOPNOTSUPP;
589 } 582 }
@@ -663,7 +656,7 @@ static int qeth_l2_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
663 ctx = qeth_eddp_create_context(card, new_skb, hdr, 656 ctx = qeth_eddp_create_context(card, new_skb, hdr,
664 skb->sk->sk_protocol); 657 skb->sk->sk_protocol);
665 if (ctx == NULL) { 658 if (ctx == NULL) {
666 PRINT_WARN("could not create eddp context\n"); 659 QETH_DBF_MESSAGE(2, "could not create eddp context\n");
667 goto tx_drop; 660 goto tx_drop;
668 } 661 }
669 } else { 662 } else {
@@ -1152,7 +1145,7 @@ static int qeth_osn_send_control_data(struct qeth_card *card, int len,
1152 (addr_t) iob, 0, 0); 1145 (addr_t) iob, 0, 0);
1153 spin_unlock_irqrestore(get_ccwdev_lock(card->write.ccwdev), flags); 1146 spin_unlock_irqrestore(get_ccwdev_lock(card->write.ccwdev), flags);
1154 if (rc) { 1147 if (rc) {
1155 PRINT_WARN("qeth_osn_send_control_data: " 1148 QETH_DBF_MESSAGE(2, "qeth_osn_send_control_data: "
1156 "ccw_device_start rc = %i\n", rc); 1149 "ccw_device_start rc = %i\n", rc);
1157 QETH_DBF_TEXT_(TRACE, 2, " err%d", rc); 1150 QETH_DBF_TEXT_(TRACE, 2, " err%d", rc);
1158 qeth_release_buffer(iob->channel, iob); 1151 qeth_release_buffer(iob->channel, iob);