aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSai Pavan Boddu <sai.pavan.boddu@xilinx.com>2020-05-12 20:24:48 +0530
committerJason Wang <jasowang@redhat.com>2020-06-18 21:05:51 +0800
commit24d62fd5028ea66448f441de8ae483beaf4afe93 (patch)
tree3ee4ad6491594d05d6c2c997cc30455cac5c1b57 /include
parent68dbee3bf95173d73f103d1a82ad9b14e5cde354 (diff)
downloadqemu-24d62fd5028ea66448f441de8ae483beaf4afe93.zip
qemu-24d62fd5028ea66448f441de8ae483beaf4afe93.tar.gz
qemu-24d62fd5028ea66448f441de8ae483beaf4afe93.tar.bz2
net: cadence_gem: Move tx/rx packet buffert to CadenceGEMState
Moving this buffers to CadenceGEMState, as their size will be increased more when JUMBO frames support is added. Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/net/cadence_gem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/net/cadence_gem.h b/include/hw/net/cadence_gem.h
index 5c83036..eddac70 100644
--- a/include/hw/net/cadence_gem.h
+++ b/include/hw/net/cadence_gem.h
@@ -40,6 +40,8 @@
#define MAX_TYPE1_SCREENERS 16
#define MAX_TYPE2_SCREENERS 16
+#define MAX_FRAME_SIZE 2048
+
typedef struct CadenceGEMState {
/*< private >*/
SysBusDevice parent_obj;
@@ -80,6 +82,8 @@ typedef struct CadenceGEMState {
uint8_t can_rx_state; /* Debug only */
+ uint8_t tx_packet[MAX_FRAME_SIZE];
+ uint8_t rx_packet[MAX_FRAME_SIZE];
uint32_t rx_desc[MAX_PRIORITY_QUEUES][DESC_MAX_NUM_WORDS];
bool sar_active[4];