Note: Many people have Herfast as son of Gorm, but the dates would indicate younger brother. In addition Gorm, according to the Royal Families of Scandinavia, is known to have only two sons: Knut, who died abt 936, & Harald Bluetooth, who possibly killed his older brother.
The general opinion of professional genealogists is that Herfast's ancestry is unknown, but probably the ancestors of Gunnora, wife of Richard I of Normandy were minor nobles, of Danish origin. Gorm was a powerful monarch of a united Denmark, while his father Harald was a minor king of the island of Sjaelland. Thus a younger son of Harald would fit the mold better than a son of Gorm.