net: Remove mbps from ipifc
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 15 Nov 2017 17:24:50 +0000 (12:24 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Nov 2017 15:46:57 +0000 (10:46 -0500)
Unused.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/net/ip.h
kern/src/net/ethermedium.c
kern/src/net/loopbackmedium.c

index 1903e6c..d6bc171 100644 (file)
@@ -227,7 +227,6 @@ struct Ipifc {
        int maxtu;                                      /* Maximum transfer unit */
        int mintu;                                      /* Minumum tranfer unit */
        unsigned int feat;                              /* Offload features */
-       int mbps;                                       /* megabits per second */
        void *arg;                                      /* medium specific */
        int reassemble;                         /* reassemble IP packets before forwarding */
 
index def7a9c..930358c 100644 (file)
@@ -249,14 +249,6 @@ static void etherbind(struct Ipifc *ifc, int argc, char **argv)
        ptr += 6;
        parsemac(ifc->mac, ptr, 6);
 
-       ptr = strstr(buf, "mbps: ");
-       if (ptr) {
-               ptr += 6;
-               ifc->mbps = atoi(ptr);
-       } else
-               ifc->mbps = 100;
-
-
        ptr = strstr(buf, "feat: ");
        if (ptr) {
                ptr += 6;
index 9c6e23e..40400a0 100644 (file)
@@ -63,7 +63,6 @@ loopbackbind(struct Ipifc *ifc, int unused_int, char **unused_char_pp_t)
        /* TO DO: make queue size a function of kernel memory */
        lb->q = qopen(128 * 1024, Qmsg, NULL, NULL);
        ifc->arg = lb;
-       ifc->mbps = 1000;
 
        ktask("loopbackread", loopbackread, ifc);