[ovs-dev] [STP 5/9] Add back 802.1D Spanning Tree Protocol (STP) library code.

Justin Pettit jpettit at nicira.com
Tue Oct 18 21:10:17 UTC 2011


On Oct 18, 2011, at 9:53 AM, Ben Pfaff wrote:

Thanks, I cleaned up the whitespace issues, the sparse warnings, the OVS endian typedefs, and updated the copyright.

> and then we get some useful warnings from sparse (at least with the
> patch to include/linux/types.h that I posted separately):
> 
>    ../lib/stp.c:718:26: warning: invalid assignment: |=
>    ../lib/stp.c:718:26:    left side has type unsigned char
>    ../lib/stp.c:718:26:    right side has type restricted __be16
>    ../lib/stp.c:721:26: warning: invalid assignment: |=
>    ../lib/stp.c:721:26:    left side has type unsigned char
>    ../lib/stp.c:721:26:    right side has type restricted __be16
>    ../lib/stp.c:779:49: warning: restricted __be16 degrades to integer
>    ../lib/stp.c:1007:42: warning: restricted __be16 degrades to integer
> 
> I think I saw that you fixed those in the next commit though.

Yes, I found them the old fashioned way without these fancy static analyzers.

> I didn't really read most of this patch, assuming that it was pretty
> much the same as what was in the tree before.


Yes, other than a few minor cleanups to make it closer to our current conventions and make it build cleanly, it's essentially the same.  I put the more interesting changes in the following patch to highlight them.

Thanks for the review.

--Justin





More information about the dev mailing list