[ofa-general] Re: [PATCH 04/11] IB/ipoib: Verify address handle validity on send
Roland Dreier
rdreier at cisco.com
Mon Sep 17 15:20:48 PDT 2007
Looks fine overall, with one minor nitpick:
> - if (unlikely(memcmp(&neigh->dgid.raw,
> + if (unlikely((memcmp(&neigh->dgid.raw,
> skb->dst->neighbour->ha + 4,
> - sizeof(union ib_gid)))) {
> + sizeof(union ib_gid))) ||
> + (neigh->dev != dev))) {
the indentation here makes this confusing to read -- I would just do:
} else if (neigh->ah) {
if (unlikely(memcmp(&neigh->dgid.raw,
skb->dst->neighbour->ha + 4,
- sizeof(union ib_gid)))) {
+ sizeof(union ib_gid)) ||
+ neigh->dev != dev)) {
More information about the general
mailing list