[BACK]Return to ixv.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / pci / ixgbe

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/pci/ixgbe/ixv.c between version 1.131 and 1.132

version 1.131, 2019/09/05 10:01:30 version 1.132, 2019/09/12 06:19:47
Line 2920  ixv_ioctl(struct ifnet *ifp, u_long comm
Line 2920  ixv_ioctl(struct ifnet *ifp, u_long comm
         case SIOCSIFFLAGS:          case SIOCSIFFLAGS:
                 IOCTL_DEBUGOUT("ioctl: SIOCSIFFLAGS (Set Interface Flags)");                  IOCTL_DEBUGOUT("ioctl: SIOCSIFFLAGS (Set Interface Flags)");
                 break;                  break;
         case SIOCADDMULTI:          case SIOCADDMULTI: {
                   struct ether_multi *enm;
                   struct ether_multistep step;
                   struct ethercom *ec = &adapter->osdep.ec;
                   int mcnt = 0;
   
                   /*
                    * Check the number of multicast address. If it exceeds,
                    * return ENOSPC.
                    * Update this code when we support API 1.3.
                    */
                   ETHER_LOCK(ec);
                   ETHER_FIRST_MULTI(step, ec, enm);
                   while (enm != NULL) {
                           mcnt++;
   
                           /*
                            * This code is before adding, so one room is required
                            * at least.
                            */
                           if (mcnt > (IXGBE_MAX_VF_MC - 1)) {
                                   device_printf(adapter->dev,
                                       "number of Ethernet multicast addresses "
                                       "exceeds the limit (%d)\n",
                                       IXGBE_MAX_VF_MC);
                                   error = ENOSPC;
                                   break;
                           }
                           ETHER_NEXT_MULTI(step, enm);
                   }
                   ETHER_UNLOCK(ec);
                   if (error)
                           return error;
           }
                   /*FALLTHROUGH*/
         case SIOCDELMULTI:          case SIOCDELMULTI:
                 IOCTL_DEBUGOUT("ioctl: SIOC(ADD|DEL)MULTI");                  IOCTL_DEBUGOUT("ioctl: SIOC(ADD|DEL)MULTI");
                 break;                  break;

Legend:
Removed from v.1.131  
changed lines
  Added in v.1.132

CVSweb <webmaster@jp.NetBSD.org>