From ad3f768023ef2dac2ee0e815295c57301535f2f3 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Tue, 21 Mar 2017 12:03:26 +0200 Subject: port_attr: comment on DpdkTRexPortAttrMlnx5G as example for using custom functions Change-Id: I5c960410e0dc02ebf6979c979a42e235c02d71c1 Signed-off-by: Yaroslav Brustinov --- src/trex_port_attr.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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) {} -- cgit 1.2.3-korg