{"push_id":2744955724,"size":1,"distinct_size":1,"ref":"refs/heads/bugfix_unexpected_txport_shown","head":"bdb40ac930fc6981e3fa2d7e292395a5f26d3a61","before":"a9973363150678c9eaacc5b6e916f01b0027212f","commits":[{"sha":"bdb40ac930fc6981e3fa2d7e292395a5f26d3a61","author":{"name":"Hideyuki Yamashita","email":"de1033a65d52227bf26c5403f805b2775b8885c1@po.ntt-tx.co.jp"},"message":"spp_vf: bug fix unexpected port shown in status command response\n\nWhen user types the following command, unexpected tx\nport is shown in status command response.\n\nsec 1;component start fwd1 12 forward\nsec 1;port add ring:0 rx fwd1\nsec 1;flush\n\nResponse to status command; { \"results\": [ { \"result\": \"success\" } ],\n\"info\": { \"client-id\": 2, \"phy\": [ 0, 1 ], \"vhost\": [ ], \"ring\": [ 0 ],\n \"core\": [ { \"core\": 10, \"type\": \"unuse\" }, { \"core\": 11,\n \"type\": \"unuse\" }, { \"rx_port\": [ { \"port\": \"ring:0\",\n \"vlan\": { \"operation\": \"none\", \"id\": 0, \"pcp\"\n \"tx_port\": [ { \"port\": \"phy:0\",★\n \"vlan\": { \"operation\": \"none\", \"id\": 0,\n \"pcp \"classifier_table\": [ ] } }\n\nThis problem is bug in the status command.\nWhen status command assumes that if number of rx port is greater\nthan zero, then number of the tx port is the same with number\nof rx port.\nThat is the reason why unexpected tx port is shown even when\ntx port does not exist.\n\nTo mitigate this problem, this patch introduces number of tx port\ninto struct forward_path and read/write this variable appropriately.\n\nSigned-off-by: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>\nSigned-off-by: Naoki Takada <takada.naoki@lab.ntt.co.jp>","distinct":true,"url":"https://api.github.com/repos/ntt-ns/spp/commits/bdb40ac930fc6981e3fa2d7e292395a5f26d3a61"}]}
{"actor":{"display_login":"Hideyuki-Yamashita"}}