qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for 8.0] igb: Save the entire Tx context descriptor


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH for 8.0] igb: Save the entire Tx context descriptor
Date: Thu, 16 Mar 2023 13:46:08 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 16/3/23 13:40, Akihiko Odaki wrote:
On 2023/03/16 21:36, Philippe Mathieu-Daudé wrote:
On 16/3/23 13:28, Akihiko Odaki wrote:
The current implementation of igb uses only part of a advanced Tx
context descriptor because it misses some features and sniffs the trait
of the packet instead of respecting the packet type specified in the
descriptor. However, we will certainly need the entire Tx context
descriptor when we update igb to respect these ignored fields. Save the
entire Tx context descriptor to prepare for such a change.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
  hw/net/igb.c      |  6 ++++--
  hw/net/igb_core.c | 17 ++++++++++-------
  hw/net/igb_core.h |  3 +--
  3 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/hw/net/igb.c b/hw/net/igb.c
index 0792626322..50239a7cb1 100644
--- a/hw/net/igb.c
+++ b/hw/net/igb.c
@@ -499,8 +499,10 @@ static const VMStateDescription igb_vmstate_tx = {
      .version_id = 1,

Don't we need to increment the vmstate version? See
https://qemu-project.gitlab.io/qemu/devel/migration.html#versions

This device is added only a week ago so it shouldn't need version bump. That is also why I tagged this change "for 8.0".

Well it is cheaper than dealing with partially backported commits...
Also could be a better example for future developers IMHO. My 2 cents.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]