diff options
author | Navdeep Parhar <np@FreeBSD.org> | 2018-04-19 18:10:44 +0000 |
---|---|---|
committer | Navdeep Parhar <np@FreeBSD.org> | 2018-04-19 18:10:44 +0000 |
commit | 8aa1c1d8b4b28913d22358a395298c0bc6152fea (patch) | |
tree | 50243b8e91eb68a77dc7b2325b86dd72fb4c9867 /sys/dev/cxgbe/tom/t4_tom.c | |
parent | 38858594c187be81eb71e916b45c3159ba6ee699 (diff) | |
download | src-8aa1c1d8b4b28913d22358a395298c0bc6152fea.tar.gz src-8aa1c1d8b4b28913d22358a395298c0bc6152fea.zip |
cxgbe(4): Fix bugs in the handling of COP rules that match on VLAN tag.
Retrieve the tag from the correct ifnet and use the provided tag
(instead of hardcoded 0xffff, implying no tag) in the routines that
process offload policy.
Submitted by: Krishnamraju Eraparaju @ Chelsio
Sponsored by: Chelsio Communications
Notes
Notes:
svn path=/head/; revision=332787
Diffstat (limited to 'sys/dev/cxgbe/tom/t4_tom.c')
-rw-r--r-- | sys/dev/cxgbe/tom/t4_tom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/tom/t4_tom.c b/sys/dev/cxgbe/tom/t4_tom.c index ce714e14e381..ced854ec7f1b 100644 --- a/sys/dev/cxgbe/tom/t4_tom.c +++ b/sys/dev/cxgbe/tom/t4_tom.c @@ -1234,7 +1234,7 @@ lookup_offload_policy(struct adapter *sc, int open_type, struct mbuf *m, switch (open_type) { case OPEN_TYPE_ACTIVE: case OPEN_TYPE_LISTEN: - pkt = prepare_pkt(open_type, 0xffff, inp, &pktlen, &buflen); + pkt = prepare_pkt(open_type, vtag, inp, &pktlen, &buflen); break; case OPEN_TYPE_PASSIVE: MPASS(m != NULL); |