patch-2.2.7 linux/net/sched/cls_rsvp.h

Next file: linux/net/sched/sch_cbq.c
Previous file: linux/net/sched/cls_fw.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.6/linux/net/sched/cls_rsvp.h linux/net/sched/cls_rsvp.h
@@ -193,23 +193,23 @@
 				    && src[2] == f->src[2]
 #endif
 				    ) {
+					*res = f->res;
 
 					RSVP_POLICE();
 
 matched:
-					if (f->tunnelhdr == 0) {
-						*res = f->res;
+					if (f->tunnelhdr == 0)
 						return 0;
-					} else {
-						tunnelid = f->res.classid;
-						nhptr = (void*)(xprt + f->tunnelhdr - sizeof(*nhptr));
-						goto restart;
-					}
+
+					tunnelid = f->res.classid;
+					nhptr = (void*)(xprt + f->tunnelhdr - sizeof(*nhptr));
+					goto restart;
 				}
 			}
 
 			/* And wildcard bucket... */
 			for (f = s->ht[16]; f; f = f->next) {
+				*res = f->res;
 				RSVP_POLICE();
 				goto matched;
 			}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)