On Sunday 30 October 2011 03:07:45 David Miller wrote: [...]
Make a common header:
struct tt_entry_common { u8 addr[ETH_ALEN]; struct hlist_node hash_entry; };
Then use that at the beginning of both structures:
struct tt_local_entry { struct tt_entry_common common; unsigned long last_seen; ... };
struct tt_global_entry { struct tt_entry_comomn common; struct orig_node *orig_node; ... };
And &p->common is what gets passed into tt_response_fill_table().
Thanks for the pull. This is exactly the long term solution we want to submit later to net-next. But we also wanted to keep the patch as small as possible for stable@kernel.org
Thanks, Sven