shithub: riscv

Download patch

ref: 02b6831fa5cb1222e42d548bf9d34aec56a5593e
parent: 47f40d8e261db4db5ce09bf06c45203abc862add
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Dec 22 21:58:47 EST 2017

kernel: remove Ipifc.mbps, unused.

--- a/sys/src/9/ip/ethermedium.c
+++ b/sys/src/9/ip/ethermedium.c
@@ -188,13 +188,6 @@
 	ptr += 6;
 	parsemac(ifc->mac, ptr, 6);
 
-	ptr = strstr(buf, "mbps: ");
-	if(ptr){
-		ptr += 6;
-		ifc->mbps = atoi(ptr);
-	} else
-		ifc->mbps = 100;
-
 	/*
  	 *  open arp conversation
 	 */
--- a/sys/src/9/ip/ip.h
+++ b/sys/src/9/ip/ip.h
@@ -315,7 +315,6 @@
 	Medium	*m;		/* Media pointer */
 	int	maxtu;		/* Maximum transfer unit */
 	int	mintu;		/* Minumum tranfer unit */
-	int	mbps;		/* megabits per second */
 	void	*arg;		/* medium specific */
 	int	reassemble;	/* reassemble IP packets before forwarding */
 
--- a/sys/src/9/ip/loopbackmedium.c
+++ b/sys/src/9/ip/loopbackmedium.c
@@ -31,7 +31,6 @@
 	lb->f = ifc->conv->p->f;
 	lb->q = qopen(1024*1024, Qmsg, nil, nil);
 	ifc->arg = lb;
-	ifc->mbps = 1000;
 
 	kproc("loopbackread", loopbackread, ifc);