commit | 730b5de6d9249d3602f866dcc4510adbb65780dd | [log] [tgz] |
---|---|---|
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | Thu Feb 21 10:30:13 2019 +0100 |
committer | Kumar Gala <kumar.gala@gmail.com> | Wed Mar 20 10:27:14 2019 -0500 |
tree | 54c46f3dd1027c019c97de5f9ec11d70d6357c6e | |
parent | 03bfc5dd0fb8f429fcd2aea08e95ab97dd936ca1 [diff] |
net/pkt: Remove superfluous total_pkt_len attribute This attribute, in case CONFIG_NET_STATISTICS is enabled, made sense when L2's send() function did not return the length of the sent packet. But now, it's a superflous optimization as is it used only to set the stats on recv or send, where net_pkt_get_len() can be used directly. This helps to save 2 bytes from struct net_pkt. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>