Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bc4b2b497aa61c79e3f3444237a4003a254ea565
Commit:     bc4b2b497aa61c79e3f3444237a4003a254ea565
Parent:     a3138df9f20e726c517f8df7387b5d83f5df5566
Author:     Klaus D. Wacker <[EMAIL PROTECTED]>
AuthorDate: Fri Oct 5 16:45:44 2007 +0200
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:54:39 2007 -0700

    qeth: HiperSockets layer-3 interface drop non IPv4 or non IPv6 packets
    
    HiperSockets infrastructure (layer-3 mode) supports only IPv4 or
    IPv6 packets. Sending other packet types disturbs TCP/IP on z/VM,
    which issues messages about invalid packets.
    Qeth send routine will detect packet type on sending over a
    HiperSockets interface (in layer-3 mode) and drop non IP packets.
    The error and drop count of the interface is incremented.
    
    Signed-off-by: Klaus D. Wacker <[EMAIL PROTECTED]>
    Signed-off-by: Ursula Braun <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/s390/net/qeth_main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/s390/net/qeth_main.c b/drivers/s390/net/qeth_main.c
index 778ddfb..b41a538 100644
--- a/drivers/s390/net/qeth_main.c
+++ b/drivers/s390/net/qeth_main.c
@@ -4719,8 +4719,8 @@ qeth_send_packet(struct qeth_card *card, struct sk_buff 
*skb)
                rc = qeth_do_send_packet(card, queue, new_skb, hdr,
                                         elements_needed, ctx);
        else {
-               if ((skb->protocol == htons(ETH_P_ARP)) &&
-                   (card->dev->flags & IFF_NOARP)) {
+               if ((!card->options.layer2) &&
+                   (ipv == 0)) {
                        __qeth_free_new_skb(skb, new_skb);
                        return -EPERM;
                }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to