git: 71ba16a0a02f - main - xnb: Don't pass SIOC{ADD, DEL}MULTI to ifmedia_ioctl().

John Baldwin jhb at FreeBSD.org
Mon Mar 22 16:56:21 UTC 2021


The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=71ba16a0a02f4a3fd56d03e908615a8b5f701ba4

commit 71ba16a0a02f4a3fd56d03e908615a8b5f701ba4
Author:     John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2021-03-22 16:55:49 +0000
Commit:     John Baldwin <jhb at FreeBSD.org>
CommitDate: 2021-03-22 16:55:49 +0000

    xnb: Don't pass SIOC{ADD,DEL}MULTI to ifmedia_ioctl().
    
    ifmedia_ioctl() doesn't handle these requests, and this matches what
    xn does.
    
    Reviewed by:    royger
    MFC after:      1 week
    Sponsored by:   DARPA
    Differential Revision:  https://reviews.freebsd.org/D29296
---
 sys/dev/xen/netback/netback.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/dev/xen/netback/netback.c b/sys/dev/xen/netback/netback.c
index 44159f60d996..8710120ecef3 100644
--- a/sys/dev/xen/netback/netback.c
+++ b/sys/dev/xen/netback/netback.c
@@ -2296,6 +2296,7 @@ xnb_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
 			break;
 		case SIOCADDMULTI:
 		case SIOCDELMULTI:
+			break;
 		case SIOCSIFMEDIA:
 		case SIOCGIFMEDIA:
 			error = ifmedia_ioctl(ifp, ifr, &xnb->sc_media, cmd);


More information about the dev-commits-src-main mailing list