From: Yaroslav Brustinov Date: Tue, 21 Mar 2017 10:03:26 +0000 (+0200) Subject: port_attr: comment on DpdkTRexPortAttrMlnx5G as example for using custom functions X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=ad3f768023ef2dac2ee0e815295c57301535f2f3;p=trex.git port_attr: comment on DpdkTRexPortAttrMlnx5G as example for using custom functions Change-Id: I5c960410e0dc02ebf6979c979a42e235c02d71c1 Signed-off-by: Yaroslav Brustinov --- 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) {}