Projet

Général

Profil

« Précédent | Suivant » 

Révision b38dafcf

Ajouté par Ermal il y a presque 10 ans

Initialize variable to avoid having false assignments.

Voir les différences:

patches/stable/10/CP_speedup.diff
278 278
 
279 279
 		if (sz < xent->len)
280 280
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
281
index 1a6ac08..226bb21 100644
281
index 1a6ac08..b0df96b 100644
282 282
--- a/sys/net/if_ethersubr.c
283 283
+++ b/sys/net/if_ethersubr.c
284
@@ -742,6 +742,8 @@ ether_demux(struct ifnet *ifp, struct mbuf *m)
284
@@ -742,7 +742,10 @@ ether_demux(struct ifnet *ifp, struct mbuf *m)
285 285
 
286 286
 		if (i != 0 || m == NULL)
287 287
 			return;
288
-	}
288 289
+
289 290
+		i = m->m_flags & M_FASTFWD_OURS;
290
 	}
291
+	} else
292
+		i = 0;
291 293
 
292 294
 	eh = mtod(m, struct ether_header *);
293
@@ -781,6 +783,8 @@ ether_demux(struct ifnet *ifp, struct mbuf *m)
295
 	ether_type = ntohs(eh->ether_type);
296
@@ -781,6 +784,8 @@ ether_demux(struct ifnet *ifp, struct mbuf *m)
294 297
 	 */
295 298
 	m->m_flags &= ~M_VLANTAG;
296 299
 	m_clrprotoflags(m);

Formats disponibles : Unified diff