diff options
author | np <np@FreeBSD.org> | 2013-04-11 16:50:58 +0000 |
---|---|---|
committer | np <np@FreeBSD.org> | 2013-04-11 16:50:58 +0000 |
commit | 8e7556507323abea2f20673a50c533ed7264e2b0 (patch) | |
tree | dccdad7281cee8030c4d75dd7d7e0cd920860062 | |
parent | 2554e81a3708e57166b2d06fe3c4fe86ad8b9336 (diff) | |
download | FreeBSD-src-8e7556507323abea2f20673a50c533ed7264e2b0.zip FreeBSD-src-8e7556507323abea2f20673a50c533ed7264e2b0.tar.gz |
Set and display the IP fragment bit correctly when dealing with
the filter mode.
MFC after: 3 days.
-rw-r--r-- | tools/tools/cxgbetool/cxgbetool.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/tools/cxgbetool/cxgbetool.c b/tools/tools/cxgbetool/cxgbetool.c index 60a21df..6b90b12 100644 --- a/tools/tools/cxgbetool/cxgbetool.c +++ b/tools/tools/cxgbetool/cxgbetool.c @@ -867,6 +867,9 @@ get_filter_mode(void) if (mode & T4_FILTER_IP_DPORT) printf("dport "); + if (mode & T4_FILTER_IP_FRAGMENT) + printf("frag "); + if (mode & T4_FILTER_MPS_HIT_TYPE) printf("matchtype "); @@ -886,7 +889,7 @@ get_filter_mode(void) printf("vlan "); if (mode & T4_FILTER_VNIC) - printf("vnic "); + printf("vnic/ovlan "); if (mode & T4_FILTER_PORT) printf("iport "); @@ -905,6 +908,9 @@ set_filter_mode(int argc, const char *argv[]) uint32_t mode = 0; for (; argc; argc--, argv++) { + if (!strcmp(argv[0], "frag")) + mode |= T4_FILTER_IP_FRAGMENT; + if (!strcmp(argv[0], "matchtype")) mode |= T4_FILTER_MPS_HIT_TYPE; |