summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2017-03-21 12:03:26 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2017-03-21 12:03:26 +0200
commitad3f768023ef2dac2ee0e815295c57301535f2f3 (patch)
tree1df0397daa7748d035db19fb7798b2918f8dbc7d
parent50d9c71d710f4180f4f2f0f712e8b934348eb064 (diff)
port_attr: comment on DpdkTRexPortAttrMlnx5G as example for using custom functions
Change-Id: I5c960410e0dc02ebf6979c979a42e235c02d71c1 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
-rwxr-xr-xsrc/trex_port_attr.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/trex_port_attr.h b/src/trex_port_attr.h
index 7a1a88f0..4c1b1cc5 100755
--- a/src/trex_port_attr.h
+++ b/src/trex_port_attr.h
@@ -353,7 +353,10 @@ private:
};
-
+/*
+Example:
+In order to use custom methods of port attributes per driver, need to instantiate this within driver.
+*/
class DpdkTRexPortAttrMlnx5G : public DpdkTRexPortAttr {
public:
DpdkTRexPortAttrMlnx5G(uint8_t port_id, bool is_virtual, bool fc_change_allowed) : DpdkTRexPortAttr(port_id, is_virtual, fc_change_allowed) {}