From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 1/6] net: changed arp_hdr struct declaration Date: Fri, 20 Feb 2015 16:22:07 +0100 Message-ID: <5954628.1jXzueXvyv@xps13> References: <1423840570-6452-1-git-send-email-michalx.k.jastrzebski@intel.com> <1694402.UUemy3W7BY@xps13> <9CC680510C0AC140A846FED2EF7F962812E5F82E@IRSMSX102.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: "Gajdzica, MaciejX T" Return-path: In-Reply-To: <9CC680510C0AC140A846FED2EF7F962812E5F82E-kPTMFJFq+rFP9JyJpTNKArfspsVTdybXVpNB7YpNyf8@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 2015-02-20 14:54, Gajdzica, MaciejX T: > > 2015-02-19 18:26, Michal Jastrzebski: > > > From: Maciej Gajdzica > > > > > > Changed MAC address type from uint8_t[6] to struct ether_addr and IP > > > address type from uint8_t[4] to uint32_t. Also removed union from > > > arp_hdr struct. Updated test-pmd to match new arp_hdr version. > > > > > > Signed-off-by: Maciej Gajdzica > > > > Why? > > "Changed A to B" is not a sufficient explanation. > > Hi Thomas > > I changed commit message to this: > > Changed MAC address type from uint8_t[6] to struct ether_addr and IP > address type from uint8_t[4] to uint32_t to make it consistent with other > DPDK code using MAC and IP addresses. It allows us to use is_same_ether_addr > and ether_addr_copy functions on MAC addresses in ARP header. Also > removed union from arp_hdr struct to make calls to arp_data items > shorter. Updated test-pmd to match new arp_hdr version. > > Is that sufficient? Yes it's far better! Thanks One day we could have a script to run before sending a patch. It would make some smoky tests and ask: "did you explain why you make this change?" ;) > This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. Please try to remove this footer. This email was distributed by the mailing list engine, despite it's prohibited. I don't want to go in jailhouse ;)