Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/xen remove check for matching ethernet address ...



details:   https://anonhg.NetBSD.org/src/rev/8866a1fb583d
branches:  trunk
changeset: 930593:8866a1fb583d
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Thu Apr 09 10:57:02 2020 +0000

description:
remove check for matching ethernet address on Tx - the higher levels do this
check anyway, and the check did not handle VLANs

diffstat:

 sys/arch/xen/xen/xennetback_xenbus.c |  15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diffs (36 lines):

diff -r 22fab71d054d -r 8866a1fb583d sys/arch/xen/xen/xennetback_xenbus.c
--- a/sys/arch/xen/xen/xennetback_xenbus.c      Thu Apr 09 10:46:19 2020 +0000
+++ b/sys/arch/xen/xen/xennetback_xenbus.c      Thu Apr 09 10:57:02 2020 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xennetback_xenbus.c,v 1.94 2020/04/07 11:47:06 jdolecek Exp $      */
+/*      $NetBSD: xennetback_xenbus.c,v 1.95 2020/04/09 10:57:02 jdolecek Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xennetback_xenbus.c,v 1.94 2020/04/07 11:47:06 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xennetback_xenbus.c,v 1.95 2020/04/09 10:57:02 jdolecek Exp $");
 
 #include "opt_xen.h"
 
@@ -665,17 +665,6 @@
 
                xennetback_tx_response(xneti, req->id, NETIF_RSP_OKAY);
 
-               if ((ifp->if_flags & IFF_PROMISC) == 0) {
-                       struct ether_header *eh =
-                           mtod(m, struct ether_header *);
-                       if (ETHER_IS_MULTICAST(eh->ether_dhost) == 0 &&
-                           memcmp(CLLADDR(ifp->if_sadl), eh->ether_dhost,
-                           ETHER_ADDR_LEN) != 0) {
-                               m_freem(m);
-                               continue; /* packet is not for us */
-                       }
-               }
-
                if (req->flags & NETTXF_csum_blank)
                        xennet_checksum_fill(ifp, m);
                else if (req->flags & NETTXF_data_validated)



Home | Main Index | Thread Index | Old Index