This finalizes what has been started in 0b70e3e78b0.
Details
Details
- Reviewers
mjg kp - Group Reviewers
network - Commits
- rGa22561501ff8: net: use pfil_mbuf_{in,out} where we always have an mbuf
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/net/if_enc.c | ||
---|---|---|
310–314 | what's up with yoda comparison? |
sys/net/if_enc.c | ||
---|---|---|
310–314 | It could probably stand to be split out of the if() at least. Maybe ret = (pdir == PFIL_IN) ? pfil_mbuf_in(ph, ctx->mp, ifp, ctx->inp) : pfil_mbuf_out(ph, ctx->mp, ifp, ctx->inp); if (ret != PFIL_PASS) ... Or even if (pdir == PFIL_IN) ret = pfil_mbuf_in(ph, ctx->mp, ifp, ctx->inp) ; else ret = pfil_mbuf_out(ph, ctx->mp, ifp, ctx->inp)); if (ret ![ PFIL_PASS) { ... |
sys/net/if_enc.c | ||
---|---|---|
310–314 | What I've written seems more readable to me. I'm open to using any other version. Kristof, Mateusz, just tell me a version you both agree with and I will use it :) |
sys/net/if_enc.c | ||
---|---|---|
310–314 | second variant looks good to me |
sys/net/if_enc.c | ||
---|---|---|
310–314 | Works for me too. |